From a4f6a8b2d2704de5d71577e8b1ab93c7f9ddc41b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 30 Sep 2020 22:42:03 +0100 Subject: [PATCH] Fix bandwidth tracking --- bin/mkgeo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}, -- 2.39.5