]> git.openstreetmap.org Git - dns.git/commitdiff
Fix bandwidth tracking
authorTom Hughes <tom@compton.nu>
Wed, 30 Sep 2020 21:42:03 +0000 (22:42 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 30 Sep 2020 21:43:35 +0000 (22:43 +0100)
bin/mkgeo

index 18aefea9c59617258b9c1978a7da748b0964723a..676c4498f7ab019865a6e4bfa2c55c4835d2b3b7 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},