diff options
author | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-22 16:08:48 +0100 |
---|---|---|
committer | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-22 16:08:48 +0100 |
commit | a279d087b85ad537172dae627c2793884f1b9f73 (patch) | |
tree | 3fed5518e35182e60c62248c6ac77883d4dca15d /web/nms.gathering.org/api/public/switch-state | |
parent | 110b939413ebc7a1b4ef1dc5a5988477d9c594bd (diff) | |
parent | 72fb92979ca3dbbbeb55159ce3a9404b8ba49099 (diff) |
Merge branch 'master' of https://github.com/tech-server/tgmanage
Diffstat (limited to 'web/nms.gathering.org/api/public/switch-state')
-rwxr-xr-x | web/nms.gathering.org/api/public/switch-state | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/nms.gathering.org/api/public/switch-state b/web/nms.gathering.org/api/public/switch-state index 6f7573c..4907449 100755 --- a/web/nms.gathering.org/api/public/switch-state +++ b/web/nms.gathering.org/api/public/switch-state @@ -20,7 +20,7 @@ while ( my $ref = $q->fetchrow_hashref() ) { my %port = %{$data{'ports'}{$porti}}; my $smallport = $porti; $smallport =~ s/[0-9-].*$//; - if ($porti =~ /ge-0\/0\/4[4-7]/) { + if ($porti =~ /ge-0\/0\/4[4-7]$/) { $json{'switches'}{$sysname}{'uplinks'}{'ifHCInOctets'} += $port{'ifHCInOctets'}; $json{'switches'}{$sysname}{'uplinks'}{'ifHCOutOctets'} += $port{'ifHCOutOctets'}; if ($port{'ifOperStatus'} eq "up") { |