diff -ur phpSysInfo-1.9/includes/common_functions.php phpSysInfo/includes/common_functions.php
--- phpSysInfo-1.9/includes/common_functions.php Sun Oct 7 04:26:23 2001
+++ phpSysInfo/includes/common_functions.php Mon Jan 7 17:44:15 2002
@@ -25,13 +25,13 @@
// print out the bar graph
-function create_bargraph ($percent, $a, $b)
+function create_bargraph ($percent, $a, $b, $type)
{
if ($percent == 0) {
return ''
. ''
. '';
- } else if ($percent < 90) {
+ } else if (($percent < 90) || ($type == "iso9660")) {
return ''
. ''
. '';
diff -ur phpSysInfo-1.9/includes/table_filesystems.php phpSysInfo/includes/table_filesystems.php
--- phpSysInfo-1.9/includes/table_filesystems.php Thu Aug 2 19:00:25 2001
+++ phpSysInfo/includes/table_filesystems.php Mon Jan 7 17:42:07 2002
@@ -43,7 +43,7 @@
$_text .= "\t\t
$f_body_open" . $fs[$i]['disk'] . "$f_body_close | \n";
$_text .= "\t\t$f_body_open";
- $_text .= create_bargraph($fs[$i]['percent'], $fs[$i]['percent'], $scale_factor);
+ $_text .= create_bargraph($fs[$i]['percent'], $fs[$i]['percent'], $scale_factor, $fs[$i]['fstype']);
$_text .= " " . $fs[$i]['percent'] . "$f_body_close | \n";
$_text .= "\t\t$f_body_open" . format_bytesize($fs[$i]['free']) . "$f_body_close | \n";
@@ -56,7 +56,7 @@
$_text .= "\t\t$f_body_open";
$sum_percent = round(($sum['used'] * 100) / $sum['size']);
-$_text .= create_bargraph($sum_percent, $sum_percent, $scale_factor);
+$_text .= create_bargraph($sum_percent, $sum_percent, $scale_factor, "totals");
$_text .= " " . $sum_percent . "%" . $f_body_close . " | \n";
diff -ur phpSysInfo-1.9/includes/table_memory.php phpSysInfo/includes/table_memory.php
--- phpSysInfo-1.9/includes/table_memory.php Thu Aug 2 19:00:25 2001
+++ phpSysInfo/includes/table_memory.php Mon Jan 7 17:43:51 2002
@@ -22,10 +22,10 @@
$scale_factor = 2;
$mem = $sysinfo->memory();
-$ram .= create_bargraph($mem['ram']['percent'], $mem['ram']['percent'], $scale_factor);
+$ram .= create_bargraph($mem['ram']['percent'], $mem['ram']['percent'], $scale_factor, "ram");
$ram .= ' ' . $mem['ram']['percent'] . '% ';
-$swap .= create_bargraph($mem['swap']['percent'], $mem['swap']['percent'], $scale_factor);
+$swap .= create_bargraph($mem['swap']['percent'], $mem['swap']['percent'], $scale_factor, "swap");
$swap .= ' ' . $mem['swap']['percent'] . '% ';