]> git.openstreetmap.org Git - dns.git/commitdiff
Don't output bandwidth for global caches
authorTom Hughes <tom@compton.nu>
Wed, 30 Sep 2020 21:48:58 +0000 (22:48 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 30 Sep 2020 21:48:58 +0000 (22:48 +0100)
bin/mkgeo

index 676c4498f7ab019865a6e4bfa2c55c4835d2b3b7..7373c2db866f3be44f97812ee29f628f27dc7a4e 100755 (executable)
--- a/bin/mkgeo
+++ b/bin/mkgeo
@@ -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};
 }