Code

error fixed
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 13 Jun 2005 12:02:09 +0000 (12:02 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 13 Jun 2005 12:02:09 +0000 (12:02 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@697 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc
plugins/admin/systems/class_terminalInfo.inc

index 495fd457403fbe185c74e15f0e3a9a31ddc10ddc..f6bb3307ff2903e9b0dc37c045dc0444d1c6dd7f 100644 (file)
@@ -1753,7 +1753,7 @@ function progressbar($percentage,$width=100,$height=15,$showvalue=false)
    }
 
   $str.= "</div></div></div>";
-
+  
   return($str);
   }
 
index 724b985d2c94bb3037414ddf35a6c7c665d9ed31..7c378d679a2a5e1eed114500247b4a3f5c7c8e5d 100644 (file)
@@ -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");