[Git][NTPsec/ntpsec][master] Address GitLab issue #19: Peer stat "time last received" not updated

Eric S. Raymond gitlab at mg.gitlab.com
Tue Dec 5 14:43:19 UTC 2017


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
992e5163 by Eric S. Raymond at 2017-12-05T09:43:07-05:00
Address GitLab issue #19: Peer stat "time last received" not updated

- - - - -


1 changed file:

- ntpd/ntp_proto.c


Changes:

=====================================
ntpd/ntp_proto.c
=====================================
--- a/ntpd/ntp_proto.c
+++ b/ntpd/ntp_proto.c
@@ -849,6 +849,11 @@ receive(
 		}
 	}
 
+	if (peer != NULL) {
+	    	peer->received++;
+		peer->timereceived = current_time;
+	}
+
 	switch(match) {
 	    case AM_FXMIT:
             case AM_NEWPASS:



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/992e51638285794ddd6d45dc4f2826b4b1aaabd0

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/992e51638285794ddd6d45dc4f2826b4b1aaabd0
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20171205/a28a20bc/attachment.html>


More information about the vc mailing list