aboutsummaryrefslogtreecommitdiff
path: root/uptime.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-09-14 17:25:23 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-09-14 17:25:23 +0200
commit2a5126f4f0c0a3e073becb98f49499363072643d (patch)
treecd9e79c76420d01c94544ce039a6a73eb667e4e5 /uptime.lua
parent4f3599db00b3a55a0ff6e52530bdad282e97f8f3 (diff)
downloadvicious-legacy-2a5126f4f0c0a3e073becb98f49499363072643d.tar.xz
General cleanup
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)