From: xchaos Date: Mon, 9 Dec 2013 01:45:07 +0000 (+0000) Subject: shit... X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=21c4f9f3d7fd2c08978d591e8f98a35f50bdfaca;p=svn%2FPrometheus-QoS%2F.git shit... git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@241 251d49ef-1d17-4917-a970-b30cf55b089b --- 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