aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2010-07-23 12:12:11 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2010-07-23 12:12:11 +0200
commitfc46e7a19d70668da0ab1df900da8898ebad000a (patch)
tree204b9ea834756c6cd3d19a05a01ff79be044b828
parentd91266357a0d36f17fb48d367d4ab1c6429b505d (diff)
downloadvicious-legacy-fc46e7a19d70668da0ab1df900da8898ebad000a.tar.xz
TODO: solid multigraph support needed
-rw-r--r--TODO1
-rw-r--r--widgets/hddtemp.lua2
-rw-r--r--widgets/raid.lua2
3 files changed, 3 insertions, 2 deletions
diff --git a/TODO b/TODO
index 6665fb1..1d65379 100644
--- a/TODO
+++ b/TODO
@@ -5,6 +5,7 @@
* Vicious
+** TODO Consider multigraph, graph stacking, support
** TODO Consider including this code in format helper
- return format and format:gsub("${[^}]+}", "")
- Note: We should then also replace just $1/$2...
diff --git a/widgets/hddtemp.lua b/widgets/hddtemp.lua
index 7559512..687ced1 100644
--- a/widgets/hddtemp.lua
+++ b/widgets/hddtemp.lua
@@ -17,7 +17,7 @@ module("vicious.widgets.hddtemp")
-- {{{ HDD Temperature widget type
local function worker(format, warg)
- -- Fallback to default hddtemp warg
+ -- Fallback to default hddtemp port
if warg == nil then warg = 7634 end
local hdd_temp = {} -- Get info from the hddtemp daemon
diff --git a/widgets/raid.lua b/widgets/raid.lua
index a714fb0..c1b7e02 100644
--- a/widgets/raid.lua
+++ b/widgets/raid.lua
@@ -44,7 +44,7 @@ local function worker(format, warg)
elseif string.sub(line, 1, string.len(warg)) == warg then
mddev[warg]["found"] = true
- for i in string.gmatch(line, "%[%d%]") do
+ for i in string.gmatch(line, "%[[%d]%]") do
mddev[warg]["assigned"] = mddev[warg]["assigned"] + 1
end
end