Skip to content

Commit

Permalink
fix: Correct memory calculation for screenos (#7191)
Browse files Browse the repository at this point in the history
correct memory calculation (SSG-140)
  • Loading branch information
sbeneke authored and laf committed Aug 21, 2017
1 parent 6d6d8ce commit e68082d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/polling/mempools/screenos.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
// Simple hard-coded poller for Juniper ScreenOS
// Yes, it really can be this simple.
$mempool['used'] = snmp_get($device, '.1.3.6.1.4.1.3224.16.2.1.0', '-OvQ');
$mempool['total'] = snmp_get($device, '.1.3.6.1.4.1.3224.16.2.2.0', '-OvQ');
$mempool['free'] = ($mempool['total'] - $mempool['used']);
$mempool['free'] = snmp_get($device, '.1.3.6.1.4.1.3224.16.2.2.0', '-OvQ');
$mempool['total'] = ($mempool['free'] + $mempool['used']);

0 comments on commit e68082d

Please sign in to comment.