Software /
code /
prosody
Diff
plugins/mod_uptime.lua @ 3540:bc139431830b
Monster whitespace commit (beware the whitespace monster).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 16 Oct 2010 23:00:42 +0500 |
parent | 3232:c47bfd62701c |
child | 4345:f6d694b1cdb3 |
line wrap: on
line diff
--- a/plugins/mod_uptime.lua Sat Oct 16 08:34:32 2010 +0500 +++ b/plugins/mod_uptime.lua Sat Oct 16 23:00:42 2010 +0500 @@ -34,8 +34,8 @@ local hours = t%24; t = (t - hours)/24; local days = t; - return string.format("This server has been running for %d day%s, %d hour%s and %d minute%s (since %s)", - days, (days ~= 1 and "s") or "", hours, (hours ~= 1 and "s") or "", + return string.format("This server has been running for %d day%s, %d hour%s and %d minute%s (since %s)", + days, (days ~= 1 and "s") or "", hours, (hours ~= 1 and "s") or "", minutes, (minutes ~= 1 and "s") or "", os.date("%c", prosody.start_time)); end