X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=prometheus.c;h=993b185aeda82202bc4a85313c847e8c11a677dc;hb=d1dd0f041b98807ce8b6dfd5d46983427d3a7f16;hp=a243c16242c3ad38625232e6110ea0d8e9c7dcd5;hpb=3335365b0903d2b1baf7331d17203490cdee65ea;p=svn%2FPrometheus-QoS%2F.git diff --git a/prometheus.c b/prometheus.c index a243c16..993b185 100644 --- a/prometheus.c +++ b/prometheus.c @@ -7,7 +7,7 @@ /* Credit: CZFree.Net,Martin Devera,Netdave,Aquarius,Gandalf */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ -/* Modified by: xChaos, 20151020 +/* Modified by: xChaos, 20160622 ludva, 20080415 Prometheus QoS is free software; you can redistribute it and/or @@ -29,7 +29,7 @@ #include "cll1-0.6.2.h" #include "ipstruct.h" -const char *version = "0.8.5-d"; +const char *version = "0.8.5-e"; /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* Versions: 0.8.5 is development release, 0.8.6 will be "stable" */ @@ -307,6 +307,7 @@ void get_config(char *config_filename) lloption("wan-download",line); lloption("wan-upload",up); ioption("hall-of-fame-enable",hall_of_fame); + ioption("digital-divide-weirdness-ratio",digital_divide); option("hall-of-fame-title",title); option("hall-of-fame-filename",html); option("json-filename",json_traffic); @@ -1051,7 +1052,7 @@ Credit: CZFree.Net, Martin Devera, Netdave, Aquarius, Gandalf\n\n",version); ptr++; if_exists(ip,ips,eq(ip->addr,_)) { - int unshape_this_ip; + int unshape_this_ip = 0; long avg_mbps_down = ip->traffic_down * 8 / how_much_seconds; long avg_mbps_up = ip->traffic_up * 8 / how_much_seconds; int agreg = 1, print_stats = 1;