diff options
author | Vladimir Kobal <vlad@prokk.net> | 2019-06-19 09:32:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-19 09:32:32 +0300 |
commit | 8a1a437e756a32166a798595927bc4bf73b7bb92 (patch) | |
tree | 0d94edbcb338ea98b24577b3c11b2a0d66c073b6 /database/rrdset.c | |
parent | 016120e87b73aece3c8a7ac523ade6211f2e8083 (diff) |
Chart name streaming (#6304)
* Update name when it is changed
* Add info about custom chart names on slaves
Diffstat (limited to 'database/rrdset.c')
-rw-r--r-- | database/rrdset.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/database/rrdset.c b/database/rrdset.c index 07ad22ba16..f8962b2fb3 100644 --- a/database/rrdset.c +++ b/database/rrdset.c @@ -511,6 +511,12 @@ RRDSET *rrdset_create_custom( if(st) { rrdset_flag_set(st, RRDSET_FLAG_SYNC_CLOCK); rrdset_flag_clear(st, RRDSET_FLAG_UPSTREAM_EXPOSED); + + if(unlikely(name)) + rrdset_set_name(st, name); + else + rrdset_set_name(st, id); + return st; } |