mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:25:07 -05:00
smooth: fix resetting
This commit is contained in:
6
smooth.c
6
smooth.c
@@ -266,13 +266,17 @@ SMT_GetOffset(struct timeval *now)
|
|||||||
void
|
void
|
||||||
SMT_Reset(struct timeval *now)
|
SMT_Reset(struct timeval *now)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
if (!enabled)
|
if (!enabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
locked = 1;
|
|
||||||
smooth_offset = 0.0;
|
smooth_offset = 0.0;
|
||||||
smooth_freq = 0.0;
|
smooth_freq = 0.0;
|
||||||
last_update = *now;
|
last_update = *now;
|
||||||
|
|
||||||
|
for (i = 0; i < NUM_STAGES; i++)
|
||||||
|
stages[i].wander = stages[i].length = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user