...
authorxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Fri, 13 Oct 2017 14:48:53 +0000 (14:48 +0000)
committerxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Fri, 13 Oct 2017 14:48:53 +0000 (14:48 +0000)
git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@262 251d49ef-1d17-4917-a970-b30cf55b089b

parseiptables.c

index 5a2043f714f55025d92cc300b937f830baee59f8..b44c7ad133008b5275d3e128449a0ff40d752deb 100644 (file)
@@ -81,10 +81,6 @@ void get_traffic_statistics(const char *whichiptables, int ipv6)
            else\r
            {\r
             sscanf(ptr,"%Lu",&traffic); \r
-            if(traffic)\r
-            {\r
-             traffic_detected = 1;\r
-            }\r
             traffic += (1<<19);\r
             traffic >>= 20;\r
            }\r
@@ -157,6 +153,7 @@ void get_traffic_statistics(const char *whichiptables, int ipv6)
     printf("(down) ");\r
    }\r
    \r
+   traffic_detected = 1;\r
    printf("%s %Lu MB (%ld pkts)\n", ipaddr, traffic, pkts);\r
 \r
    if_exists(ip, ips, eqi(ip->addr,ipaddr)); \r
This page took 0.191245 seconds and 4 git commands to generate.