aboutsummaryrefslogtreecommitdiff
path: root/uptime.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-09-24 15:34:56 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-09-24 15:34:56 +0200
commita54350782e9bbd81aad3ef58a11826e3cd13134c (patch)
treec2281044157b39ab3c7f780d500d084e7d3d3d55 /uptime.lua
parent080d1e82f535e5a8e6fb3fbb4e1df97f7a21bf42 (diff)
downloadvicious-legacy-a54350782e9bbd81aad3ef58a11826e3cd13134c.tar.xz
General cleanup to match with HEAD
Diffstat (limited to 'uptime.lua')
-rw-r--r--uptime.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/uptime.lua b/uptime.lua
index 83485e4..7261b16 100644
--- a/uptime.lua
+++ b/uptime.lua
@@ -22,9 +22,7 @@ local function worker(format)
local line = f:read("*line")
f:close()
- -- Format data
local total_uptime = math.floor(tonumber(line:match("[%d%.]+")))
-
local uptime_days = math.floor(total_uptime / (3600 * 24))
local uptime_hours = math.floor((total_uptime % (3600 * 24)) / 3600)
local uptime_minutes = math.floor(((total_uptime % (3600 * 24)) % 3600) / 60)