--- projects/cms/source/reports/php/latest/latest.php 2005/05/04 14:14:25 1.49
+++ projects/cms/source/reports/php/latest/latest.php 2005/06/29 10:26:40 1.50
@@ -157,6 +157,9 @@ function showDisks($diskRoot, $units, $input) {
$total = "$diskRoot.p$i.attributes.total";
$graph = preg_replace("/_/", "$hex_underscore", $mount);
$graph = preg_replace("/\//", "$hex_slash", $graph);
+ $graph = preg_replace("/\\\\/", "$hex_bslash", $graph);
+ $graph = preg_replace("/ /", "$hex_space", $graph);
+ $graph = preg_replace("/:/", "$hex_colon", $graph);
$totalinodes = getPregMatch("$diskRoot.p$i.attributes.totalinodes", $input);
$freeinodes = getPregMatch("$diskRoot.p$i.attributes.freeinodes", $input);
showBar("$name ($mount)
space used", $used, $total, $units, $input, "disk-$graph");
@@ -180,9 +183,14 @@ function showDiskIO($diskRoot, $input) {
while(1) {
$name = getPregMatch("$diskRoot.p$i.attributes.name", $input);
if ($name) {
+ $graph = preg_replace("/\//", "$hex_slash", $name);
+ $graph = preg_replace("/_/", "$hex_underscore", $graph);
+ $graph = preg_replace("/\\\\/", "$hex_bslash", $graph);
+ $graph = preg_replace("/ /", "$hex_space", $graph);
+ $graph = preg_replace("/:/", "$hex_colon", $graph);
print "