From: Tom Hughes Date: Wed, 30 Sep 2020 21:42:03 +0000 (+0100) Subject: Fix bandwidth tracking X-Git-Url: https://git.openstreetmap.org./dns.git/commitdiff_plain/a4f6a8b2d2704de5d71577e8b1ab93c7f9ddc41b Fix bandwidth tracking --- diff --git a/bin/mkgeo b/bin/mkgeo index 18aefea..676c449 100755 --- 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},