diff options
author | root <root@krebs> | 2011-09-09 22:57:37 +0200 |
---|---|---|
committer | root <root@krebs> | 2011-09-09 22:57:37 +0200 |
commit | a5335258dc9dfb1d990d0a52de7aa47f29a0f64d (patch) | |
tree | f253279deb4a30b4b49f7b1990f62b9bf59b3980 /commands | |
parent | 27d31204e1dff7222fa63e674b2f114fe6e7c38d (diff) |
//Reaktor/commands/uptime: allow uptime < 1d
Diffstat (limited to 'commands')
-rwxr-xr-x | commands/uptime | 3 |
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 ' |