X-Git-Url: https://git.openstreetmap.org./dns.git/blobdiff_plain/503291e69b63d53cc039c66278cea6cee91aad75..8bb3a6a73af45aadd27b0b2f5204edf4cc633ba9:/bin/mkgeo diff --git a/bin/mkgeo b/bin/mkgeo index c89921e..7373c2d 100755 --- a/bin/mkgeo +++ b/bin/mkgeo @@ -146,6 +146,8 @@ while (my($name,$cluster) = each %$clusters) $cluster->{bandwidth_limit} = $cluster->{bandwidth} * 1024 * 1024; $cluster->{bandwidth_used} = 0; + next if $cluster->{global}; + $targetorigins->{$cluster->{name}} = { code => $cluster->{name}, name => $cluster->{name}, @@ -261,6 +263,8 @@ foreach my $origin (sort { $a->{name} cmp $b->{name} } values %$origins) }; } + next if $cluster->{global}; + $targetorigins->{$cluster->{name}}->{bandwidth} += $origin->{bandwidth}; }