mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@3218 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -324,7 +324,7 @@ foreach ($ports as $port)
|
||||
$port['stats']['ifOutBits_rate'] = round($port['stats']['ifOutOctets_rate'] * 8);
|
||||
|
||||
// If we have a valid ifSpeed we should populate the stats for checking.
|
||||
if(is_numeric($this_port['ifSpeed']))
|
||||
if (is_numeric($this_port['ifSpeed']))
|
||||
{
|
||||
$port['stats']['ifInBits_perc'] = round($port['stats']['ifInBits_rate'] / $this_port['ifSpeed'] * 100);
|
||||
$port['stats']['ifOutBits_perc'] = round($port['stats']['ifOutBits_rate'] / $this_port['ifSpeed'] * 100);
|
||||
|
||||
Reference in New Issue
Block a user