X-Git-Url: https://git.openstreetmap.org./dns.git/blobdiff_plain/503291e69b63d53cc039c66278cea6cee91aad75..0901b0633e274edeaad21af51ea1c4e360f2f931:/bin/mkgeo?ds=inline 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}; }