Base poll adjustment on number of sourcestats samples

Instead of following skew changes, adjust polling interval so that the
number of measurements used in the regression algorithm remains close to
a target value. It can be configured with a new polltarget option
(6 by default).
This commit is contained in:
Miroslav Lichvar
2010-10-13 16:49:28 +02:00
parent d9596334c3
commit 7a6ee1d729
12 changed files with 88 additions and 50 deletions

3
conf.c
View File

@@ -397,6 +397,9 @@ parse_source(const char *line, NTP_Source_Type type)
case CPS_BadMinstratum:
LOG(LOGS_WARN, LOGF_Configure, "Unreadable minstratum value at line %d", line_number);
break;
case CPS_BadPolltarget:
LOG(LOGS_WARN, LOGF_Configure, "Unreadable polltarget value at line %d", line_number);
break;
}
return;