@cryptotaxi247 / netdata-1 / commits / 4be641cfe

proc/net/ip_vs_starts is hex

Costa Tsaousis (ktsaou) committed Mar 20, 2015 at 11:28 UTC 4be641cfe6d254a115406711395a152bf6ceb101
1 file changed +5 -5
src/proc_net_ip_vs_stats.c
+5 -5
@@ -34,11 +34,11 @@ int do_proc_net_ip_vs_stats(int update_every, unsigned long long dt) {
34
35 unsigned long long entries, InPackets, OutPackets, InBytes, OutBytes;
36
37 - entries = strtoull(procfile_lineword(ff, 2, 0), NULL, 10);
38 - InPackets = strtoull(procfile_lineword(ff, 2, 1), NULL, 10);
39 - OutPackets = strtoull(procfile_lineword(ff, 2, 2), NULL, 10);
40 - InBytes = strtoull(procfile_lineword(ff, 2, 3), NULL, 10);
41 - OutBytes = strtoull(procfile_lineword(ff, 2, 4), NULL, 10);
37 + entries = strtoull(procfile_lineword(ff, 2, 0), NULL, 16);
38 + InPackets = strtoull(procfile_lineword(ff, 2, 1), NULL, 16);
39 + OutPackets = strtoull(procfile_lineword(ff, 2, 2), NULL, 16);
40 + InBytes = strtoull(procfile_lineword(ff, 2, 3), NULL, 16);
41 + OutBytes = strtoull(procfile_lineword(ff, 2, 4), NULL, 16);
42
43 RRD_STATS *st;
44