[Git][NTPsec/ntpsec][master] NTS: Fix bug that was supposed to limit log clutter
Hal Murray
gitlab at mg.gitlab.com
Mon Mar 25 10:30:23 UTC 2019
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
a8595a41 by Hal Murray at 2019-03-25T09:24:00Z
NTS: Fix bug that was supposed to limit log clutter
- - - - -
1 changed file:
- ntpd/ntp_proto.c
Changes:
=====================================
ntpd/ntp_proto.c
=====================================
@@ -2853,7 +2853,7 @@ proto_clr_stats(void)
void maybe_log_junk(struct recvbuf *rbufp) {
static unsigned int noise_try = 0;
noise_try++;
- if ((noise_try>100) && (((noise_try-90)*3600/current_time) < 10))
+ if ((noise_try>100) && (((noise_try-90)*3600/current_time) > 10))
return;
msyslog(LOG_INFO,
"JUNK: M%d V%d 0/%2x%2x%2x%2x 48/%2x%2x%2x%2x from %s, lng=%ld",
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/a8595a410273d8e08713875906d8304b4d72beb6
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/a8595a410273d8e08713875906d8304b4d72beb6
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/20190325/50d31299/attachment.html>
More information about the vc
mailing list