From 76e4b36e48c443e6777658092ea3daa194fdeb48 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 9 Sep 2011 22:57:37 +0200 Subject: //Reaktor/commands/uptime: allow uptime < 1d --- Reaktor/commands/uptime | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Reaktor/commands') 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 ' -- cgit v1.2.3