mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 19:15:07 -05:00
local: add assertion for precision
This commit is contained in:
2
local.c
2
local.c
@@ -144,6 +144,8 @@ calculate_sys_precision(void)
|
|||||||
best *= 2;
|
best *= 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assert(precision_log >= -30);
|
||||||
|
|
||||||
DEBUG_LOG(LOGF_Local, "Clock precision %.9f (%d)", precision_quantum, precision_log);
|
DEBUG_LOG(LOGF_Local, "Clock precision %.9f (%d)", precision_quantum, precision_log);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user