mirror of
https://github.com/netdata/netdata.git
synced 2025-04-26 05:47:20 +00:00
Use two digits after the decimal point for the anomaly rate. (#11804)
This commit is contained in:
parent
b842fcab3d
commit
54c8ccf377
1 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ static void updateRateChart(RRDHOST *RH, collected_number AnomalyRate) {
|
|||
);
|
||||
|
||||
AnomalyRateRD = rrddim_add(RS, "anomaly_rate", NULL,
|
||||
1, 1, RRD_ALGORITHM_ABSOLUTE);
|
||||
1, 100, RRD_ALGORITHM_ABSOLUTE);
|
||||
} else
|
||||
rrdset_next(RS);
|
||||
|
||||
|
@ -396,7 +396,7 @@ void DetectableHost::detectOnce() {
|
|||
this->NumTrainedDimensions = NumTrainedDimensions;
|
||||
|
||||
updateDimensionsChart(getRH(), NumTrainedDimensions, NumNormalDimensions, NumAnomalousDimensions);
|
||||
updateRateChart(getRH(), AnomalyRate * 100.0);
|
||||
updateRateChart(getRH(), AnomalyRate * 10000.0);
|
||||
updateWindowLengthChart(getRH(), WindowLength);
|
||||
updateEventsChart(getRH(), P, ResetBitCounter, NewAnomalyEvent);
|
||||
updateTrainingChart(getRH(), TotalTrainingDuration * 1000.0, MaxTrainingDuration * 1000.0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue