ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/generic/statgrab.pl
(Generate patch)

Comparing projects/cms/source/host/generic/statgrab.pl (file contents):
Revision 1.33 by tdb, Tue Feb 13 12:18:07 2001 UTC vs.
Revision 1.34 by tdb, Mon Feb 26 23:58:42 2001 UTC

# Line 322 | Line 322 | sub include_uptime() {
322  
323      if ($uptime =~ /day.*,\s+([0-9]+):([0-9]+)/) {
324        # normal
325 <        $uptime =~ /up\s+([0-9]+)\s+.*,\s+([0-9]+):([0-9]+)/;
325 >        $uptime =~ /up\s+([0-9]+)\s+[^\s]+,\s+([0-9]+):([0-9]+)/;
326          $uptime = "$1:$2:$3";
327      }
328      else {
329          if ($uptime =~ /day/) {
330              if ($uptime =~ /hr/) {
331                # 0 minutes
332 <                $uptime =~ /up\s+([0-9]+)\s+.*,\s+([0-9]+)\s+.*,/;
332 >                $uptime =~ /up\s+([0-9]+)\s+[^\s]+,\s+([0-9]+)\s+[^\s]+,/;
333                  $uptime = "$1:$2:0";
334              }
335              elsif ($uptime =~ /min/) {
336                # 0 hours
337 <                $uptime =~ /up\s+([0-9]+)\s+.*,\s+([0-9]+)\s+.*,/;
337 >                $uptime =~ /up\s+([0-9]+)\s+[^\s]+,\s+([0-9]+)\s+[^\s]+,/;
338                  $uptime = "$1:0:$2";
339              }
340              else {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines