summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
'