X-Git-Url: https://git.openstreetmap.org./dns.git/blobdiff_plain/61a1aecd20674600e8a0100034266efcc99345da..0901b0633e274edeaad21af51ea1c4e360f2f931:/bin/mkgeo?ds=sidebyside diff --git a/bin/mkgeo b/bin/mkgeo index 18aefea..7373c2d 100755 --- a/bin/mkgeo +++ b/bin/mkgeo @@ -143,11 +143,11 @@ my $targetorigins = {}; # Initialise cluster details while (my($name,$cluster) = each %$clusters) { - next if $cluster->{global}; - $cluster->{bandwidth_limit} = $cluster->{bandwidth} * 1024 * 1024; $cluster->{bandwidth_used} = 0; + next if $cluster->{global}; + $targetorigins->{$cluster->{name}} = { code => $cluster->{name}, name => $cluster->{name}, @@ -263,6 +263,8 @@ foreach my $origin (sort { $a->{name} cmp $b->{name} } values %$origins) }; } + next if $cluster->{global}; + $targetorigins->{$cluster->{name}}->{bandwidth} += $origin->{bandwidth}; }