aboutsummaryrefslogtreecommitdiffstats
path: root/web/api/public
diff options
context:
space:
mode:
Diffstat (limited to 'web/api/public')
-rwxr-xr-xweb/api/public/switch-state2
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'};