aboutsummaryrefslogtreecommitdiff
path: root/widgets/dio.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2010-03-14 03:37:40 +0100
committerAdrian C. (anrxc) <anrxc@sysphere.org>2010-03-14 03:37:40 +0100
commit4dad2e360c1c464feef9a8aaff6e96a7636c54b7 (patch)
tree03290f705cef2ec761a0a1ee46b3bc38cb08e0ea /widgets/dio.lua
parent237470c8f45190b213e3a173ce6ae1a74b3e11fe (diff)
downloadvicious-legacy-4dad2e360c1c464feef9a8aaff6e96a7636c54b7.tar.xz
API: missing warg should not break awesome
Diffstat (limited to 'widgets/dio.lua')
-rw-r--r--widgets/dio.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/widgets/dio.lua b/widgets/dio.lua
index 9731d57..64a56e1 100644
--- a/widgets/dio.lua
+++ b/widgets/dio.lua
@@ -24,6 +24,8 @@ local unit = { ["s"] = 1, ["kb"] = 2, ["mb"] = 2048 }
-- {{{ Disk I/O widget type
local function worker(format, disk)
+ if not disk then return end
+
local disk_lines = { [disk] = {} }
local disk_stats = helpers.pathtotable("/sys/block/" .. disk)
local disk_queue = helpers.pathtotable("/sys/block/" .. disk .. "/queue")