aboutsummaryrefslogtreecommitdiff
path: root/uptime.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-08-03 04:33:18 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-08-03 04:33:18 +0200
commit3fe67d4311f1f099da9ff13849c70a97d5078228 (patch)
tree3cca98a867e1d65a25751bb2cd28133e4ce0b7d7 /uptime.lua
parent09fda0ab05c066a8f630e1d7a36f401bbc0ca68e (diff)
downloadvicious-legacy-3fe67d4311f1f099da9ff13849c70a97d5078228.tar.xz
Coding style changes in entropy, load, thermal, uptime.
Diffstat (limited to 'uptime.lua')
-rw-r--r--uptime.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/uptime.lua b/uptime.lua
index 82cb20a..fc8c97f 100644
--- a/uptime.lua
+++ b/uptime.lua
@@ -20,7 +20,7 @@ module("vicious.uptime")
function worker(format, padding)
-- Get /proc/uptime
local f = io.open("/proc/uptime")
- local line = f:read()
+ local line = f:read("*line")
f:close()
-- Format data