sourcestats: add fixed asymmetry

Rework the code to allow the jitter asymmetry to be specified.
This commit is contained in:
Miroslav Lichvar
2017-08-22 16:26:40 +02:00
parent d0964ffa83
commit b06d74ab73
7 changed files with 59 additions and 32 deletions

View File

@@ -53,7 +53,8 @@ test_unit(void)
DEBUG_LOG("added source %d options %d", j, sel_options);
srcs[j] = SRC_CreateNewInstance(UTI_IPToRefid(&addr), SRC_NTP, sel_options, &addr,
SRC_DEFAULT_MINSAMPLES, SRC_DEFAULT_MAXSAMPLES, 0.0);
SRC_DEFAULT_MINSAMPLES, SRC_DEFAULT_MAXSAMPLES,
0.0, 1.0);
SRC_UpdateReachability(srcs[j], 1);
samples = (i + j) % 5 + 3;