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 | 76e4b36e48c443e6777658092ea3daa194fdeb48 (patch) | |
tree | 83fd8712d167eaf7e210879355ade24ba46342f1 /Reaktor | |
parent | 505848a38ef8a755e0c2644d2502ddbc1d4d478a (diff) |
//Reaktor/commands/uptime: allow uptime < 1d
Diffstat (limited to 'Reaktor')
-rwxr-xr-x | Reaktor/commands/uptime | 3 |
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 ' |