diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2022-06-28 17:04:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-28 17:04:37 +0300 |
commit | c3dfbe52a61dd0d1995bc420b0e0576cf058fd74 (patch) | |
tree | 193bfe3de88bff1a8effb9dd062a96beda8d16c6 /ml | |
parent | e86cec2631c961b434031e2e09597701a9ec53f8 (diff) |
netdata doubles (#13217)
* netdata doubles
* fix cmocka test
* fix cmocka test again
* fix left-overs of long double to NETDATA_DOUBLE
* RRDDIM detached from disk representation; db settings in [db] section of netdata.conf
* update the memory before saving
* rrdset is now detached from file structures too
* on memory mode map, update the memory mapped structures on every iteration
* allow RRD_ID_LENGTH_MAX to be changed
* granularity secs, back to update every
* fix formatting
* more formatting
Diffstat (limited to 'ml')
-rw-r--r-- | ml/Dimension.cc | 2 | ||||
-rw-r--r-- | ml/ml.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ml/Dimension.cc b/ml/Dimension.cc index 7db8174dcf..0fe07530c8 100644 --- a/ml/Dimension.cc +++ b/ml/Dimension.cc @@ -42,7 +42,7 @@ TrainableDimension::getCalculatedNumbers() { auto P = Q.nextMetric(); CalculatedNumber Value = P.second; - if (calculated_number_isnumber(Value)) { + if (netdata_double_isnumber(Value)) { CNs[Idx] = Value; LastValue = CNs[Idx]; CollectedValues++; @@ -186,10 +186,10 @@ void ml_process_rrdr(RRDR *R, int MaxAnomalyRates) { if (MaxAnomalyRates < 1 || MaxAnomalyRates >= R->d) return; - calculated_number *CNs = R->v; + NETDATA_DOUBLE *CNs = R->v; RRDR_DIMENSION_FLAGS *DimFlags = R->od; - std::vector<std::pair<calculated_number, int>> V; + std::vector<std::pair<NETDATA_DOUBLE, int>> V; V.reserve(R->d); for (int Idx = 0; Idx != R->d; Idx++) |