sourcestats: update regression after loading dump file
Call SST_DoNewRegression() immediately in SST_LoadFromFile instead of relying on SRC_ReloadSources().
This commit is contained in:
parent
02844e9b01
commit
41cf867738
2 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
/* ================================================== */
|
||||
|
|
Loading…
Reference in a new issue