summaryrefslogtreecommitdiffstats
path: root/Reaktor
diff options
context:
space:
mode:
authorroot <root@krebs>2011-09-09 22:57:37 +0200
committerroot <root@krebs>2011-09-09 22:57:37 +0200
commit76e4b36e48c443e6777658092ea3daa194fdeb48 (patch)
tree83fd8712d167eaf7e210879355ade24ba46342f1 /Reaktor
parent505848a38ef8a755e0c2644d2502ddbc1d4d478a (diff)
//Reaktor/commands/uptime: allow uptime < 1d
Diffstat (limited to 'Reaktor')
-rwxr-xr-xReaktor/commands/uptime3
1 files changed, 2 insertions, 1 deletions
diff --git a/Reaktor/commands/uptime b/Reaktor/commands/uptime
index def9bf4f..7ff64168 100755
--- a/Reaktor/commands/uptime
+++ b/Reaktor/commands/uptime
@@ -3,5 +3,6 @@
# //Reactor/commands/uptime - IRC-optimized uptime output
#
uptime | sed '
- s/^\(.*\) up \(.*\) days\?, *\(.*\), *\(.*\) users\?, *load average: \(.*\)$/\1; \2d \3; \4u; \5/
+ s/^\(.*\) up \(.*\) days\?, *\(.*\), *\(.*\) users\?, *load average: \(.*\)$/\1; \2d \3; \4u; \5/;t
+ s/^\(.*\) up *\(.*\), *\(.*\) users\?, *load average: \(.*\)$/\1; 0d \2; \3u; \4/;t
'