aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcommands/uptime3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/uptime b/commands/uptime
index def9bf4..7ff6416 100755
--- a/commands/uptime
+++ b/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
'