projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4c0882
)
Fix uptime parsing
author
Jamie Cameron
<jcameron@webmin.com>
Wed, 4 Feb 2009 18:58:29 +0000
(18:58 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Wed, 4 Feb 2009 18:58:29 +0000
(18:58 +0000)
blue-theme/right.cgi
patch
|
blob
|
history
diff --git
a/blue-theme/right.cgi
b/blue-theme/right.cgi
index
c2b489f
..
0580303
100755
(executable)
--- a/
blue-theme/right.cgi
+++ b/
blue-theme/right.cgi
@@
-65,10
+65,16
@@
if ($level == 0) {
# up 198 days, 2:06
$uptime = &text('right_updays', int($1), int($2), int($3));
}
+ elsif ($out =~ /up\s+(\d+)\s+days,\s+(\d+)\s+min/) {
+ # up 198 days, 10 mins
+ $uptime = &text('right_updays', int($1), 0, int($2));
+ }
elsif ($out =~ /up\s+(\d+):(\d+)/) {
+ # up 3:10
$uptime = &text('right_uphours', int($1), int($2));
}
elsif ($out =~ /up\s+(\d+)\s+mins/) {
+ # up 45 mins
$uptime = &text('right_upmins', int($1));
}
if ($uptime) {