diff options
author | Sjur Fredriksen <sjurtf@ifi.uio.no> | 2019-04-15 20:18:00 +0200 |
---|---|---|
committer | Sjur Fredriksen <sjurtf@ifi.uio.no> | 2019-04-15 20:18:00 +0200 |
commit | 777ddcd639201851efb7d04ceb740ee03f7bbcef (patch) | |
tree | 3104a8746e19e1c13e6593ff9d178600dfb4d424 /web/api/public/switch-state | |
parent | c7ad6bd799574486fc037f7b601ffc8c99bd6ba8 (diff) |
update what to look for
Diffstat (limited to 'web/api/public/switch-state')
-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 5d8be0a..da108a5 100755 --- a/web/api/public/switch-state +++ b/web/api/public/switch-state @@ -113,7 +113,7 @@ while ( my $ref = $q2->fetchrow_hashref() ) { $json{'then'}{$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{'then'}{$sysname}{'uplinks'}{'ifHCInOctets'} += $port{'ifHCInOctets'}; $json{'then'}{$sysname}{'uplinks'}{'ifHCOutOctets'} += $port{'ifHCOutOctets'}; |