]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
sourcestats: use maximum value as invalid age in source report
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 2 Dec 2015 17:10:22 +0000 (18:10 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 3 Dec 2015 10:43:06 +0000 (11:43 +0100)
sourcestats.c

index 52e503492e2080102340eb3dd7a93260abf79b84..ac976dca331cc855d1409d137fd6f0f439aa667d 100644 (file)
@@ -845,7 +845,7 @@ SST_DoSourceReport(SST_Stats inst, RPT_SourceReport *report, struct timeval *now
     UTI_DiffTimevals(&ago, now, &inst->sample_times[i]);
     report->latest_meas_ago = ago.tv_sec;
   } else {
-    report->latest_meas_ago = 86400 * 365 * 10;
+    report->latest_meas_ago = (uint32_t)-1;
     report->orig_latest_meas = 0;
     report->latest_meas = 0;
     report->latest_meas_err = 0;