]> arthur.barton.de Git - netdata.git/commitdiff
proc/net/ip_vs_starts is hex
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Fri, 20 Mar 2015 09:28:53 +0000 (11:28 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Fri, 20 Mar 2015 09:28:53 +0000 (11:28 +0200)
src/proc_net_ip_vs_stats.c

index 077569dba5dcb4e62755c81e6ecb269d4241dcfa..d6b44911229220209ddd1fd4b30045e20f9aaf71 100755 (executable)
@@ -34,11 +34,11 @@ int do_proc_net_ip_vs_stats(int update_every, unsigned long long dt) {
 
        unsigned long long entries, InPackets, OutPackets, InBytes, OutBytes;
 
-       entries         = strtoull(procfile_lineword(ff, 2, 0), NULL, 10);
-       InPackets       = strtoull(procfile_lineword(ff, 2, 1), NULL, 10);
-       OutPackets      = strtoull(procfile_lineword(ff, 2, 2), NULL, 10);
-       InBytes         = strtoull(procfile_lineword(ff, 2, 3), NULL, 10);
-       OutBytes        = strtoull(procfile_lineword(ff, 2, 4), NULL, 10);
+       entries         = strtoull(procfile_lineword(ff, 2, 0), NULL, 16);
+       InPackets       = strtoull(procfile_lineword(ff, 2, 1), NULL, 16);
+       OutPackets      = strtoull(procfile_lineword(ff, 2, 2), NULL, 16);
+       InBytes         = strtoull(procfile_lineword(ff, 2, 3), NULL, 16);
+       OutBytes        = strtoull(procfile_lineword(ff, 2, 4), NULL, 16);
 
        RRD_STATS *st;