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 { |