@cryptotaxi247 / netdata-1 / commits / 00d15117f

resync clock on chart creation attempt

Costa Tsaousis (ktsaou) committed Jul 18, 2018 at 17:17 UTC 00d15117fbe14abc112c82466153d8b481c21780
1 file changed +5 -1
src/rrdset.c
+5 -1
@@ -477,7 +477,11 @@ RRDSET *rrdset_create_custom(
477 snprintfz(fullid, RRD_ID_LENGTH_MAX, "%s.%s", type, id);
478
479 RRDSET *st = rrdset_find_on_create(host, fullid);
480 - if(st) return st;
480 + if(st) {
481 + rrdset_flag_set(st, RRDSET_FLAG_SYNC_CLOCK);
482 + rrdset_flag_clear(st, RRDSET_FLAG_EXPOSED_UPSTREAM);
483 + return st;
484 + }
485
486 rrdhost_wrlock(host);
487