summaryrefslogtreecommitdiffstats
path: root/ml/Dimension.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-08-12 07:26:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-08-12 07:26:11 +0000
commit3c315f0fff93aa072472abc10815963ac0035268 (patch)
treea95f6a96e0e7bd139c010f8dc60b40e5b3062a99 /ml/Dimension.h
parentAdding upstream version 1.35.1. (diff)
downloadnetdata-8ee42cb3e03178db97e68c43291395145b5d548e.tar.xz
netdata-8ee42cb3e03178db97e68c43291395145b5d548e.zip
Adding upstream version 1.36.0.upstream/1.36.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ml/Dimension.h')
-rw-r--r--ml/Dimension.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ml/Dimension.h b/ml/Dimension.h
index e4f8bd1c7..4fbc09b98 100644
--- a/ml/Dimension.h
+++ b/ml/Dimension.h
@@ -12,13 +12,13 @@ namespace ml {
class RrdDimension {
public:
- RrdDimension(RRDDIM *RD) : RD(RD), Ops(&RD->state->query_ops) { }
+ RrdDimension(RRDDIM *RD) : RD(RD), Ops(&RD->tiers[0]->query_ops) { }
RRDDIM *getRD() const { return RD; }
- time_t latestTime() { return Ops->latest_time(RD); }
+ time_t latestTime() { return Ops->latest_time(RD->tiers[0]->db_metric_handle); }
- time_t oldestTime() { return Ops->oldest_time(RD); }
+ time_t oldestTime() { return Ops->oldest_time(RD->tiers[0]->db_metric_handle); }
unsigned updateEvery() const { return RD->update_every; }