{\r
ip->traffic += traffic;\r
}\r
- ip->direct = ip->traffic-ip->upload-ip->proxy;\r
- ip->pktsdown = pkts;\r
+ ip->direct += ip->traffic-ip->upload-ip->proxy;\r
+ ip->pktsdown += pkts;\r
}\r
else\r
{\r
- ip->upload = traffic;\r
- ip->pktsup = pkts;\r
+ ip->upload += traffic;\r
+ ip->pktsup += pkts;\r
if(include_upload)\r
{\r
ip->traffic += traffic;\r
}\r
else \r
{\r
- if(traffic > ip->traffic)\r
+ if(ip->upload > ip->traffic)\r
{\r
- ip->traffic = traffic; \r
+ ip->traffic = ip->upload;\r
}\r
}\r
}\r
char *wan_medium = "100Mbit"; /* 10Mbit/100Mbit ethernet */\r
char *qos_leaf = "sfq perturb 5"; /* leaf discipline */\r
char *qos_free_zone = NULL; /* QoS free zone */\r
-int qos_proxy = TRUE; /* include proxy port to QoS */\r
+/* int qos_proxy = TRUE; include proxy port to QoS */\r
int found_lmsid = FALSE; /* show links to users in LMS information system */\r
int include_upload = TRUE; /* upload+download=total traffic */\r
char *proxy_ip = "192.168.1.1/32"; /* our IP with proxy port */\r
ioption("use-jquery-popups",use_jquery_popups);\r
option("qos-free-zone",qos_free_zone);\r
ioption("qos-free-delay",qos_free_delay);\r
- ioption("qos-proxy-enable",qos_proxy);\r
+/* ioption("qos-proxy-enable",qos_proxy); */\r
option("qos-proxy-ip",proxy_ip);\r
option("htb-leaf-discipline",qos_leaf);\r
ioption("qos-proxy-port",proxy_port);\r