@cryptotaxi247 / netdata-1 / commits / fe7a0a04c

fix for synthetic chart gauge dimensions having the wrong divisor; fixes #2260

Costa Tsaousis (ktsaou) committed May 31, 2017 at 12:44 UTC fe7a0a04cf739a46ceea27a8722d47cc21497368
1 file changed +2
src/statsd.c
+2
@@ -1647,6 +1647,8 @@ static inline void statsd_update_app_chart(STATSD_APP *app, STATSD_APP_CHART *ch
1647 if(unlikely(dim->value_ptr)) {
1648 // FIXME: this is anorthodox, we should an API call at RRDDIM to overwrite these settings
1649 dim->rd->algorithm = dim->algorithm;
1650 + dim->rd->multiplier = dim->multiplier;
1651 + dim->rd->divisor = dim->divisor;
1652
1653 debug(D_STATSD, "updating dimension '%s' (%s) of chart '%s' (%s) for app '%s' with value " COLLECTED_NUMBER_FORMAT, dim->name, dim->rd->id, chart->id, chart->st->id, app->name, *dim->value_ptr);
1654 rrddim_set_by_pointer(chart->st, dim->rd, *dim->value_ptr);