From: Miroslav Lichvar Date: Fri, 19 Aug 2016 14:21:27 +0000 (+0200) Subject: sourcestats: update regression after loading dump file X-Git-Tag: 3.0-pre1~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41cf867738658ccaa8f239bdf2f4b6550663de5a;p=thirdparty%2Fchrony.git sourcestats: update regression after loading dump file Call SST_DoNewRegression() immediately in SST_LoadFromFile instead of relying on SRC_ReloadSources(). --- diff --git a/sources.c b/sources.c index d0e494a5..af177a25 100644 --- a/sources.c +++ b/sources.c @@ -1227,7 +1227,6 @@ SRC_ReloadSources(void) LOG(LOGS_WARN, LOGF_Sources, "Could not open dump file %s", filename); } else { if (SST_LoadFromFile(sources[i]->stats, in)) { - SST_DoNewRegression(sources[i]->stats); } else { LOG(LOGS_WARN, LOGF_Sources, "Problem loading from file %s", filename); } diff --git a/sourcestats.c b/sourcestats.c index 1ecff41b..9a6371c1 100644 --- a/sourcestats.c +++ b/sourcestats.c @@ -897,9 +897,9 @@ SST_LoadFromFile(SST_Stats inst, FILE *in) inst->runs_samples = 0; find_min_delay_sample(inst); + SST_DoNewRegression(inst); return 1; - } /* ================================================== */