Fix initialization of frequency estimation interval.

The clock_sync_interval() function is called when logSyncInterval
changes from zero. Call it also when the clock is created to have
fest.max_count set accordingly to freq_est_interval even with zero
logSyncInterval.

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
master
Miroslav Lichvar 2013-02-07 19:56:50 +01:00 committed by Richard Cochran
parent 5e22865728
commit 1e9db8b8dd
1 changed files with 1 additions and 1 deletions

View File

@ -499,7 +499,7 @@ struct clock *clock_create(int phc_index, struct interface *iface, int count,
c->pollfd[i].events = 0;
}
c->fest.max_count = 2;
clock_sync_interval(c, 0);
for (i = 0; i < count; i++) {
c->fault_timeout[i] = iface[i].pod.fault_reset_interval;