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.28 by pjm2, Sat Mar 17 22:27:22 2001 UTC vs.
Revision 1.30 by pjm2, Sat Mar 17 22:37:32 2001 UTC

# Line 65 | Line 65 | function showDisks($diskRoot, $units, $input) {
65              $kbytes = getPregMatch("$diskRoot.p$i.attributes.kbytes", $input);
66              showBar("$name ($mount)", $used, $kbytes, $units, $input);
67          }
68 +        else {
69 +            break;
70 +        }
71          $i++;
72      }
73   }
74  
75   # Return a preg_match result.
76   function getPregMatch($value, $input) {
77 <    preg_match("/$value=([^\,\}]*)\,\}/", $input, $matches);
77 >    preg_match("/$value=([^\,\}]*)[\,\}]/", $input, $matches);
78      return $matches[1];
79   }
80  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines