From 469d627747f7fc4b24283f10f82f37b670c878eb Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 10 Jul 2020 21:48:05 -0400 Subject: [PATCH] zebra: Only note time of first nht registration We were noticing registration time of the last nht time. Let's just store the original time, although I am a bit dubious about the usefulness of this. Signed-off-by: Donald Sharp --- zebra/zapi_msg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c index 6dd197f010..17114f820c 100644 --- a/zebra/zapi_msg.c +++ b/zebra/zapi_msg.c @@ -1078,7 +1078,8 @@ static void zread_rnh_register(ZAPI_HANDLER_ARGS) s = msg; - client->nh_reg_time = monotime(NULL); + if (!client->nh_reg_time) + client->nh_reg_time = monotime(NULL); while (l < hdr->length) { STREAM_GETC(s, flags); -- 2.39.5