diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php
index f653dc8a0..a95ea99ac 100644
--- a/html/includes/functions.inc.php
+++ b/html/includes/functions.inc.php
@@ -271,10 +271,13 @@ STATE;
function print_percentage_bar($width, $height, $percent, $left_text, $left_colour, $left_background, $right_text, $right_colour, $right_background)
{
+
+ if($percent > "100") { $size_percent = "100"; } else { $size_percent = $percent; }
+
$output = '
-
+
'.$left_text.'
'.$right_text.'
diff --git a/includes/discovery/mempools/screenos.inc.php b/includes/discovery/mempools/screenos.inc.php
index 5a7fc0f55..b10f1bb76 100755
--- a/includes/discovery/mempools/screenos.inc.php
+++ b/includes/discovery/mempools/screenos.inc.php
@@ -7,8 +7,8 @@ if ($device['os'] == "screenos")
echo("ScreenOS: ");
$used = snmp_get($device, ".1.3.6.1.4.1.3224.16.2.1.0", "-OvQ");
- $total = snmp_get($device, ".1.3.6.1.4.1.3224.16.2.2.0", "-OvQ");
- $free = $total - $used;
+ $free = snmp_get($device, ".1.3.6.1.4.1.3224.16.2.2.0", "-OvQ");
+ $total = $free + $used;
$percent = $used / $total * 100;
@@ -17,4 +17,4 @@ if ($device['os'] == "screenos")
discover_mempool($valid_mempool, $device, 0, "screenos", "Memory", "1", NULL, NULL);
}
}
-?>
\ No newline at end of file
+?>