X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=web%2Fnettkart-text.pl;h=23e5cad1898c810930e21181da494f3c3792fcbd;hb=cdd60722550e4c3fc22faf1d00b0214f0d08bce8;hp=9e2eb321acd7e5c5ef5e45590bb85e33137445b8;hpb=f6cc98a589e8dd3b1b98151a70f6b5db98b2b04f;p=nms diff --git a/web/nettkart-text.pl b/web/nettkart-text.pl index 9e2eb32..23e5cad 100755 --- a/web/nettkart-text.pl +++ b/web/nettkart-text.pl @@ -17,10 +17,7 @@ print <<"EOF"; EOF -my $q = $dbh->prepare('select * from switches natural join placements natural left join -( select switch,sum(bytes_in)/count(*) as -bytes_in,sum(bytes_out)/count(*) as bytes_out from get_datarate() group -by switch ) t1'); +my $q = $dbh->prepare('select * from switches natural join placements'); $q->execute(); while (my $ref = $q->fetchrow_hashref()) { $ref->{'placement'} =~ /\((\d+),(\d+)\),\((\d+),(\d+)\)/;