From 1d0cfd3aeded65ded10b7ab3163488c3dc1d4383 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Wed, 11 Nov 2009 14:32:37 +0100 Subject: Cleanup widgets that use pathtotable helper --- dio.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'dio.lua') diff --git a/dio.lua b/dio.lua index 41c0663..07b7266 100644 --- a/dio.lua +++ b/dio.lua @@ -27,10 +27,7 @@ local disk_total = {} -- {{{ Disk I/O widget type local function worker(format, disk) local disk_lines = {} - local disk_stats = setmetatable( - { _path = "/sys/block/" .. disk }, - helpers.pathtotable - ) + local disk_stats = helpers.pathtotable("/sys/block/" .. disk) if disk_stats.stat then local match = string.gmatch(disk_stats.stat, "[%s]+([%d]+)") -- cgit v1.2.3