diff options
author | Timotej S <6674623+underhood@users.noreply.github.com> | 2022-09-27 18:31:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-27 18:31:24 +0200 |
commit | f89f8845252370c70403c1f3badb26518aa63182 (patch) | |
tree | 3698d81640beb3066712e78ee5b15969422587e3 /database/rrddim.c | |
parent | 3ea35e2dcd32e8fa7958298798608ff63798575f (diff) |
Remove Chart/Dim based communication (#13650)
Co-authored-by: Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com>
Diffstat (limited to 'database/rrddim.c')
-rw-r--r-- | database/rrddim.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/database/rrddim.c b/database/rrddim.c index aa067d39b0..7d15911b11 100644 --- a/database/rrddim.c +++ b/database/rrddim.c @@ -281,9 +281,6 @@ static void rrddim_react_callback(const DICTIONARY_ITEM *item __maybe_unused, vo if(ctr->react_action == RRDDIM_REACT_UPDATED) { debug(D_METADATALOG, "DIMENSION [%s] metadata updated", rrddim_id(rd)); (void)sql_store_dimension(&rd->metric_uuid, &rd->rrdset->chart_uuid, rrddim_id(rd), rrddim_name(rd), rd->multiplier, rd->divisor, rd->algorithm); -#ifdef ENABLE_ACLK - queue_dimension_to_aclk(rd, calc_dimension_liveness(rd, now_realtime_sec())); -#endif // the chart needs to be updated to the parent rrdset_flag_set(st, RRDSET_FLAG_SYNC_CLOCK); @@ -431,6 +428,8 @@ time_t rrddim_first_entry_t(RRDDIM *rd) { // last collected time : Dimension is not live #ifdef ENABLE_ACLK +#define RRDSET_MINIMUM_DIM_LIVE_MULTIPLIER (3) +#define RRDSET_MINIMUM_DIM_OFFLINE_MULTIPLIER (30) time_t calc_dimension_liveness(RRDDIM *rd, time_t now) { time_t last_updated = rd->last_collected_time.tv_sec; |