ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/php/latest/latest.php
(Generate patch)

Comparing projects/cms/source/reports/php/latest/latest.php (file contents):
Revision 1.42 by tdb, Sun Oct 13 12:41:16 2002 UTC vs.
Revision 1.43 by tdb, Mon Oct 21 13:02:58 2002 UTC

# Line 86 | Line 86 | function showDisks($diskRoot, $units, $input) {
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;
# Line 108 | Line 112 | function showBar($title, $value, $max, $units, $input,
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      }
# Line 145 | Line 150 | function showBar($title, $value, $max, $units, $input,
150            <tr>
151              <td align="left">0<?=$units?></td>
152              <td align="right"><?=$max?><?=$units?></td>
148          </tr>
149          <tr>
150            <td colspan="2">&nbsp;</td>
153            </tr>
154          </table>
155      <?

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines