From: Tom Hughes Date: Wed, 21 Jan 2015 20:57:38 +0000 (+0000) Subject: Update total bandwidth estimate X-Git-Url: https://git.openstreetmap.org./dns.git/commitdiff_plain/ad8cdcc89c402969929646b48ec9315c91c4637c Update total bandwidth estimate --- diff --git a/bin/sumlogs b/bin/sumlogs index c46bcba..e342adc 100755 --- a/bin/sumlogs +++ b/bin/sumlogs @@ -7,6 +7,7 @@ use Geo::IP; use YAML; my $gi = Geo::IP->open("/usr/share/GeoIP/GeoIP.dat", GEOIP_MEMORY_CACHE); +my $total_bandwidth = 560 * 1024 * 1024; my $total_bytes = 0; my %country_bytes; @@ -45,7 +46,7 @@ my %country_bandwidth; while (my($country,$bytes) = each %country_bytes) { - $country_bandwidth{$country} = $bytes * 300 * 1024 * 1024 / $total_bytes; + $country_bandwidth{$country} = $bytes * $total_bandwidth / $total_bytes; } print Dump(\%country_bandwidth);