From: xchaos Date: Fri, 13 Oct 2017 14:48:53 +0000 (+0000) Subject: ... X-Git-Url: https://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=commitdiff_plain;h=7449b3ede09ef8690b073f73d7732e0e9d532090 ... git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@262 251d49ef-1d17-4917-a970-b30cf55b089b --- diff --git a/parseiptables.c b/parseiptables.c index 5a2043f..b44c7ad 100644 --- a/parseiptables.c +++ b/parseiptables.c @@ -81,10 +81,6 @@ void get_traffic_statistics(const char *whichiptables, int ipv6) else { sscanf(ptr,"%Lu",&traffic); - if(traffic) - { - traffic_detected = 1; - } traffic += (1<<19); traffic >>= 20; } @@ -157,6 +153,7 @@ void get_traffic_statistics(const char *whichiptables, int ipv6) printf("(down) "); } + traffic_detected = 1; printf("%s %Lu MB (%ld pkts)\n", ipaddr, traffic, pkts); if_exists(ip, ips, eqi(ip->addr,ipaddr));