From 21c4f9f3d7fd2c08978d591e8f98a35f50bdfaca Mon Sep 17 00:00:00 2001 From: xchaos Date: Mon, 9 Dec 2013 01:45:07 +0000 Subject: [PATCH] shit... git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@241 251d49ef-1d17-4917-a970-b30cf55b089b --- parseiptables.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/parseiptables.c b/parseiptables.c index f34e5f9..eca2ced 100644 --- a/parseiptables.c +++ b/parseiptables.c @@ -98,7 +98,6 @@ void get_traffic_statistics(const char *whichiptables, int ipv6) } else if(!ipv6) { - /* if(downloadflag) { if(strstr(proxy_ip,ptr)) @@ -108,8 +107,7 @@ void get_traffic_statistics(const char *whichiptables, int ipv6) } else - { -*/ + { */ if(!downloadflag) { ipaddr = ptr; @@ -179,9 +177,9 @@ void get_traffic_statistics(const char *whichiptables, int ipv6) } else {*/ - ip->traffic += traffic; + ip->traffic += traffic; /* } */ - ip->direct += ip->traffic-ip->upload; /*-ip->proxy;*/ + ip->direct += traffic; /*-ip->proxy;*/ ip->pktsdown += pkts; } else -- 2.30.2