From: Miroslav Lichvar Date: Thu, 10 Feb 2022 15:38:50 +0000 (+0100) Subject: sourcestats: add function to get minsamples X-Git-Tag: 4.3-pre1~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d06ae4a60e2856b30ee32321e9d99b231c83af3e;p=thirdparty%2Fchrony.git sourcestats: add function to get minsamples --- diff --git a/sourcestats.c b/sourcestats.c index 986956f8..ef64bf8c 100644 --- a/sourcestats.c +++ b/sourcestats.c @@ -986,6 +986,14 @@ SST_Samples(SST_Stats inst) /* ================================================== */ +int +SST_GetMinSamples(SST_Stats inst) +{ + return inst->min_samples; +} + +/* ================================================== */ + void SST_DoSourcestatsReport(SST_Stats inst, RPT_SourcestatsReport *report, struct timespec *now) { diff --git a/sourcestats.h b/sourcestats.h index 7a551e6b..e10f4250 100644 --- a/sourcestats.h +++ b/sourcestats.h @@ -133,6 +133,8 @@ extern void SST_DoSourcestatsReport(SST_Stats inst, RPT_SourcestatsReport *repor extern int SST_Samples(SST_Stats inst); +extern int SST_GetMinSamples(SST_Stats inst); + extern double SST_GetJitterAsymmetry(SST_Stats inst); #endif /* GOT_SOURCESTATS_H */