mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 21:35:06 -05:00
local: replace is_step_change parameter of change handler with enum
Prepare for a new change type that will be added later.
This commit is contained in:
@@ -144,10 +144,10 @@ handle_slew(struct timeval *raw,
|
||||
struct timeval *cooked,
|
||||
double dfreq,
|
||||
double doffset,
|
||||
int is_step_change,
|
||||
LCL_ChangeType change_type,
|
||||
void *anything)
|
||||
{
|
||||
if (is_step_change) {
|
||||
if (change_type == LCL_ChangeStep) {
|
||||
UTI_AddDoubleToTimeval(&last_ref_update, -doffset, &last_ref_update);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user