From 2a5126f4f0c0a3e073becb98f49499363072643d Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Mon, 14 Sep 2009 17:25:23 +0200 Subject: General cleanup --- uptime.lua | 2 -- 1 file changed, 2 deletions(-) (limited to 'uptime.lua') 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) -- cgit v1.2.3