aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/port-state.pl
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2015-04-10 16:17:27 +0200
committerKristian Lyngstol <kristian@bohemians.org>2015-04-10 16:17:27 +0200
commit3d0c76ac9ca315156e6cddcb361d747bd354bf98 (patch)
tree4e56fff51f1061d90f7266c3e0df288accf6765d /web/nms.gathering.org/port-state.pl
parent284cb623b41261144584c49d5d1e664ee21506e0 (diff)
NMS2: Draw linknets, fix fonts and add replay
Diffstat (limited to 'web/nms.gathering.org/port-state.pl')
-rwxr-xr-xweb/nms.gathering.org/port-state.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/nms.gathering.org/port-state.pl b/web/nms.gathering.org/port-state.pl
index 0821cde..df73b2e 100755
--- a/web/nms.gathering.org/port-state.pl
+++ b/web/nms.gathering.org/port-state.pl
@@ -81,7 +81,8 @@ while (my $ref = $q3->fetchrow_hashref()) {
my $q4 = $dbh->prepare(' select linknet, (select sysname from switches where switch = switch1) as sysname1, addr1, (select sysname from switches where switch = switch2) as sysname2,addr2 from linknets');
$q4->execute();
while (my $ref = $q4->fetchrow_hashref()) {
- push @{$json{'linknets'}}, $ref;
+ $json{'linknets'}{$ref->{'linknet'}} = $ref;
+# push @{$json{'linknets'}}, $ref;
}
print $cgi->header(-type=>'text/json; charset=utf-8');