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;
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);