From aee6cc76535145e210af97aad787efdeb1762f38 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 13 Jun 2005 12:02:09 +0000 Subject: [PATCH] error fixed git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@697 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions.inc | 2 +- plugins/admin/systems/class_terminalInfo.inc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/functions.inc b/include/functions.inc index 495fd4574..f6bb3307f 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -1753,7 +1753,7 @@ function progressbar($percentage,$width=100,$height=15,$showvalue=false) } $str.= ""; - + return($str); } diff --git a/plugins/admin/systems/class_terminalInfo.inc b/plugins/admin/systems/class_terminalInfo.inc index 724b985d2..7c378d679 100644 --- a/plugins/admin/systems/class_terminalInfo.inc +++ b/plugins/admin/systems/class_terminalInfo.inc @@ -109,7 +109,7 @@ class terminfo extends plugin $SwapTotal= preg_replace('/^.*[=:] ([0-9.]+)$/', '\\1', $SwapTotal); if ($SwapTotal != 0){ #$smarty->assign("swap", (int)(($SwapTotal - $SwapFree)*100/$SwapTotal)); - $smarty->assign("swap", porgressbar(0,100,15,true)); + $smarty->assign("swap", progressbar(0,100,15,true)); } /* Get system uptime */ @@ -120,7 +120,7 @@ class terminfo extends plugin $sysload= @snmpget($host, $community, "UCD-SNMP-MIB::laLoad.2"); $sysload= preg_replace('/^.*[=:] ([0-9.]+)$/', '\\1', $sysload); - $smarty->assign("load", progressbar($sysload*100,100,20,true)); + $smarty->assign("load", progressbar($sysload*100,100,15,true)); /* Get status for key processes */ $processes= @snmpwalk($host, $community, "UCD-SNMP-MIB::prNames"); -- 2.30.2