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:
Miroslav Lichvar 2020-05-20 12:53:16 +02:00
parent eedf61b3a2
commit e555548dda

View file

@ -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");