diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-02-17 22:37:18 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-02-17 22:37:18 +0200 |
commit | bb6da9c67e6ee7a257f764d2d3e26cc0a276e5c7 (patch) | |
tree | e8f3509e6387da47932959bbb3668428b975142c /src/plugins_d.c | |
parent | 07fa57ac884f0581e4f4759bf75bff05d867ce4e (diff) |
lower the memory footprint of dimensions by 1.5KB
Diffstat (limited to 'src/plugins_d.c')
-rw-r--r-- | src/plugins_d.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins_d.c b/src/plugins_d.c index 9a027cb2f7..4ddcc20d03 100644 --- a/src/plugins_d.c +++ b/src/plugins_d.c @@ -316,9 +316,9 @@ void *pluginsd_worker_thread(void *arg) rd = rrddim_add(st, id, name, multiplier, divisor, rrddim_algorithm_id(algorithm)); rd->flags = 0x00000000; if(options && *options) { - if(strstr(options, "hidden") != NULL) rd->flags |= RRDDIM_FLAG_HIDDEN; - if(strstr(options, "noreset") != NULL) rd->flags |= RRDDIM_FLAG_DONT_DETECT_RESETS_OR_OVERFLOWS; - if(strstr(options, "nooverflow") != NULL) rd->flags |= RRDDIM_FLAG_DONT_DETECT_RESETS_OR_OVERFLOWS; + if(strstr(options, "hidden") != NULL) rrddim_flag_set(rd, RRDDIM_FLAG_HIDDEN); + if(strstr(options, "noreset") != NULL) rrddim_flag_set(rd, RRDDIM_FLAG_DONT_DETECT_RESETS_OR_OVERFLOWS); + if(strstr(options, "nooverflow") != NULL) rrddim_flag_set(rd, RRDDIM_FLAG_DONT_DETECT_RESETS_OR_OVERFLOWS); } } else if(unlikely(st->debug)) debug(D_PLUGINSD, "PLUGINSD: dimension %s/%s already exists. Not adding it again.", st->id, id); |