diff options
author | Sjur Fredriksen <sjurtf@ifi.uio.no> | 2019-04-15 20:08:39 +0200 |
---|---|---|
committer | Sjur Fredriksen <sjurtf@ifi.uio.no> | 2019-04-15 20:08:39 +0200 |
commit | c7ad6bd799574486fc037f7b601ffc8c99bd6ba8 (patch) | |
tree | 6862c718277ab22482537eccf54bcf9fbb777bde | |
parent | 68f92ee69b944383dc2659ac358555f7548662a4 (diff) |
update what to look for
-rwxr-xr-x | web/api/public/switch-state | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/api/public/switch-state b/web/api/public/switch-state index 7e696e5..5d8be0a 100755 --- a/web/api/public/switch-state +++ b/web/api/public/switch-state @@ -44,7 +44,7 @@ while ( my $ref = $q->fetchrow_hashref() ) { $json{'switches'}{$sysname}{ifs}{$smallport}{'ifAlias'} = $port{'ifAlias'}; } if ($data{'ports'}{$porti}{'ifType'} ne "propVirtual" and - $data{'ports'}{$porti}{'ifAlias'} =~ m/Fysisk/i) { + $data{'ports'}{$porti}{'ifAlias'} =~ m/G:/i) { if ($port{'ifAdminStatus'} eq "up") { $json{'switches'}{$sysname}{'uplinks'}{'ifHCInOctets'} += $port{'ifHCInOctets'}; $json{'switches'}{$sysname}{'uplinks'}{'ifHCOutOctets'} += $port{'ifHCOutOctets'}; |