X-Git-Url: https://git.sesse.net/?p=nms;a=blobdiff_plain;f=web%2Fnettkart-text.pl;h=23e5cad1898c810930e21181da494f3c3792fcbd;hp=9e2eb321acd7e5c5ef5e45590bb85e33137445b8;hb=cdd60722550e4c3fc22faf1d00b0214f0d08bce8;hpb=f7eda6ca24362cf66edb302c3df25512080ea455 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+)\)/;