summaryrefslogtreecommitdiffstats
path: root/src/rrd2json.c
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-02-18 18:28:31 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-02-22 01:00:23 +0200
commitbf06c2fb046ad56eafecccff26c05d8d24c53dfc (patch)
tree622198590f320e27a68cf16235a377eacd4b731b /src/rrd2json.c
parentc35f24c5b566a25f62a140b58fc8f930a0e2f12a (diff)
each host can have its own settings for history, update_every, rrd memory mode, health enabled
Diffstat (limited to 'src/rrd2json.c')
-rw-r--r--src/rrd2json.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rrd2json.c b/src/rrd2json.c
index b06fb4ae66..40e5bea78e 100644
--- a/src/rrd2json.c
+++ b/src/rrd2json.c
@@ -93,8 +93,8 @@ void rrd_stats_api_v1_charts(BUFFER *wb)
, localhost->hostname
, program_version
, os_type
- , rrd_update_every
- , rrd_default_history_entries
+ , localhost->rrd_update_every
+ , localhost->rrd_history_entries
);
pthread_rwlock_rdlock(&localhost->rrdset_root_rwlock);
@@ -438,8 +438,8 @@ void rrd_stats_all_json(BUFFER *wb)
"\t\"memory\": %lu\n"
"}\n"
, localhost->hostname
- , rrd_update_every
- , rrd_default_history_entries
+ , localhost->rrd_update_every
+ , localhost->rrd_history_entries
, memory
);
}