aboutsummaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2010-07-10 02:02:34 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2010-07-10 02:02:34 +0200
commit8674c919d64291827eec05e1e3fbc21c29a7396e (patch)
treeaeadcecab9fb584d587e6c033dec445e722bb049 /widgets
parentd6faae15986056377605295744ccce80f3890cea (diff)
downloadvicious-legacy-8674c919d64291827eec05e1e3fbc21c29a7396e.tar.xz
dio: add partition support
Diffstat (limited to 'widgets')
-rw-r--r--widgets/dio.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/dio.lua b/widgets/dio.lua
index 4aa7002..edf4638 100644
--- a/widgets/dio.lua
+++ b/widgets/dio.lua
@@ -61,7 +61,7 @@ local function worker(format, disk)
helpers.uformat(disk_usage[disk], "total", diff_total[disk][7] + diff_total[disk][3], unit)
-- Store I/O scheduler
- if disk_stats.queue.scheduler then
+ if disk_stats.queue and disk_stats.queue.scheduler then
disk_usage[disk]["{sched}"] = string.gmatch(disk_stats.queue.scheduler, "%[([%a]+)%]")
end