]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
reference: negate offset printed in maxchange log message
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 11 Apr 2014 14:09:43 +0000 (16:09 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 11 Apr 2014 14:09:43 +0000 (16:09 +0200)
This makes it consistent with other log messages.

reference.c

index 6a71706da13a9f773e2b3497a61e6cd21bb01cca..e6b7d31bf3e6f735b6d7d72530fe18ee2d2bfc52 100644 (file)
@@ -578,7 +578,7 @@ is_offset_ok(double offset)
   if (offset > max_offset) {
     LOG(LOGS_WARN, LOGF_Reference,
         "Adjustment of %.3f seconds exceeds the allowed maximum of %.3f seconds (%s) ",
-        offset, max_offset, !max_offset_ignore ? "exiting" : "ignored");
+        -offset, max_offset, !max_offset_ignore ? "exiting" : "ignored");
     if (!max_offset_ignore)
       end_ref_mode(0);
     else if (max_offset_ignore > 0)