mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:35:06 -05:00
reference: fix offset sign in log message
In the maxchange check, log the original offset instead of the absolute value.
This commit is contained in:
@@ -555,8 +555,7 @@ is_offset_ok(double offset)
|
||||
return 1;
|
||||
}
|
||||
|
||||
offset = fabs(offset);
|
||||
if (offset > max_offset) {
|
||||
if (fabs(offset) > max_offset) {
|
||||
LOG(LOGS_WARN,
|
||||
"Adjustment of %.3f seconds exceeds the allowed maximum of %.3f seconds (%s) ",
|
||||
-offset, max_offset, !max_offset_ignore ? "exiting" : "ignored");
|
||||
|
||||
Reference in New Issue
Block a user