eliminated compiler warnings
Costa Tsaousis committed
Sep 26, 2016 at 14:23 UTC
8b3cfc7d8e65d67307716e6616de6f0296cd515d
1 file changed
+2
-2
src/proc_net_softnet_stat.c
+2
-2
@@ -93,12 +93,12 @@ int do_proc_net_softnet_stat(int update_every, unsigned long long dt) {
93
if(do_per_core) {
94
for(l = 0; l < lines ;l++) {
95
char id[50+1];
96
- snprintfz(id, 50, "cpu%d_softnet_stat", l);
96
+ snprintfz(id, 50, "cpu%u_softnet_stat", l);
97
98
st = rrdset_find_bytype("cpu", id);
99
if(!st) {
100
char title[100+1];
101
- snprintfz(title, 100, "CPU%d softnet_stat", l);
101
+ snprintfz(title, 100, "CPU%u softnet_stat", l);
102
103
st = rrdset_create("cpu", id, NULL, "softnet_stat", NULL, title, "events/s", 4101 + l, update_every, RRDSET_TYPE_LINE);
104
for(w = 0; w < allocated_columns ;w++)