fixed wrong printf signness
Costa Tsaousis committed
Jul 1, 2016 at 22:27 UTC
6246feccfa6079e023ed5e41742774ca9c6dc83b
1 file changed
+2
-2
src/apps_plugin.c
+2
-2
@@ -2073,14 +2073,14 @@ void send_charts_updates_to_netdata(struct target *root, const char *type, const
2073
for (w = root; w ; w = w->next) {
2074
if(w->target || (!w->processes && !w->exposed)) continue;
2075
2076
- fprintf(stdout, "DIMENSION %s '' incremental 100 %d noreset\n", w->name, hz);
2076
+ fprintf(stdout, "DIMENSION %s '' incremental 100 %u noreset\n", w->name, hz);
2077
}
2078
2079
fprintf(stdout, "CHART %s.cpu_system '' '%s CPU System Time (%d%% = %d core%s)' 'cpu time %%' cpu %s.cpu_system stacked 20021 %d\n", type, title, (processors * 100), processors, (processors>1)?"s":"", type, update_every);
2080
for (w = root; w ; w = w->next) {
2081
if(w->target || (!w->processes && !w->exposed)) continue;
2082
2083
- fprintf(stdout, "DIMENSION %s '' incremental 100 %d noreset\n", w->name, hz);
2083
+ fprintf(stdout, "DIMENSION %s '' incremental 100 %u noreset\n", w->name, hz);
2084
}
2085
2086
fprintf(stdout, "CHART %s.major_faults '' '%s Major Page Faults (swap read)' 'page faults/s' swap %s.major_faults stacked 20010 %d\n", type, title, type, update_every);