]> git.openstreetmap.org Git - dns.git/blobdiff - bin/mkgeo
openstreetmap.gay has been transferred to Gandi
[dns.git] / bin / mkgeo
index 18aefea9c59617258b9c1978a7da748b0964723a..7373c2db866f3be44f97812ee29f628f27dc7a4e 100755 (executable)
--- 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};
 }