From 7449b3ede09ef8690b073f73d7732e0e9d532090 Mon Sep 17 00:00:00 2001 From: xchaos Date: Fri, 13 Oct 2017 14:48:53 +0000 Subject: [PATCH] ... git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@262 251d49ef-1d17-4917-a970-b30cf55b089b --- parseiptables.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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)); -- 2.30.2