| 86 |
|
$kbytes = "$diskRoot.p$i.attributes.kbytes"; |
| 87 |
|
$graph = preg_replace("/_/", "$hex_underscore", $mount); |
| 88 |
|
$graph = preg_replace("/\//", "$hex_slash", $graph); |
| 89 |
< |
showBar("$name<br>($mount)", $used, $kbytes, $units, $input, "disk-$graph"); |
| 89 |
> |
$totalinodes = getPregMatch("$diskRoot.p$i.attributes.totalinodes", $input); |
| 90 |
> |
$freeinodes = getPregMatch("$diskRoot.p$i.attributes.freeinodes", $input); |
| 91 |
> |
showBar("$name ($mount)<br>space used", $used, $kbytes, $units, $input, "disk-$graph"); |
| 92 |
> |
showBar("inodes used", (int) $freeinodes, (int) $totalinodes, " inodes", $input, "", "swap"); |
| 93 |
> |
print " <br><br>\n"; |
| 94 |
|
} |
| 95 |
|
else { |
| 96 |
|
break; |
| 112 |
|
include("latest_config.inc.php"); |
| 113 |
|
|
| 114 |
|
$report = $value; |
| 115 |
< |
|
| 116 |
< |
$value = getPregMatch($value, $input); |
| 115 |
> |
if (!is_int($value)) { |
| 116 |
> |
$value = getPregMatch($value, $input); |
| 117 |
> |
} |
| 118 |
|
if (!is_int($max)) { |
| 119 |
|
$max = getPregMatch($max, $input); |
| 120 |
|
} |
| 150 |
|
<tr> |
| 151 |
|
<td align="left">0<?=$units?></td> |
| 152 |
|
<td align="right"><?=$max?><?=$units?></td> |
| 148 |
– |
</tr> |
| 149 |
– |
<tr> |
| 150 |
– |
<td colspan="2"> </td> |
| 153 |
|
</tr> |
| 154 |
|
</table> |
| 155 |
|
<? |