]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
sourcestats: add function to get minsamples
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 10 Feb 2022 15:38:50 +0000 (16:38 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 10 Feb 2022 15:38:50 +0000 (16:38 +0100)
sourcestats.c
sourcestats.h

index 986956f84a6be0fda764ceb53b2b99977e49eb9e..ef64bf8c7591e3fc071ead7d63b31935dad23f3a 100644 (file)
@@ -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)
 {
index 7a551e6b0dcd167b449940302b2e364bd8dff904..e10f42504d4e4f6176e2bbff3c06209009b7ceb9 100644 (file)
@@ -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 */