TODO: solid multigraph support needed
This commit is contained in:
parent
d91266357a
commit
fc46e7a19d
1
TODO
1
TODO
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
|
|
||||||
* Vicious
|
* Vicious
|
||||||
|
** TODO Consider multigraph, graph stacking, support
|
||||||
** TODO Consider including this code in format helper
|
** TODO Consider including this code in format helper
|
||||||
- return format and format:gsub("${[^}]+}", "")
|
- return format and format:gsub("${[^}]+}", "")
|
||||||
- Note: We should then also replace just $1/$2...
|
- Note: We should then also replace just $1/$2...
|
||||||
|
|
|
@ -17,7 +17,7 @@ module("vicious.widgets.hddtemp")
|
||||||
|
|
||||||
-- {{{ HDD Temperature widget type
|
-- {{{ HDD Temperature widget type
|
||||||
local function worker(format, warg)
|
local function worker(format, warg)
|
||||||
-- Fallback to default hddtemp warg
|
-- Fallback to default hddtemp port
|
||||||
if warg == nil then warg = 7634 end
|
if warg == nil then warg = 7634 end
|
||||||
|
|
||||||
local hdd_temp = {} -- Get info from the hddtemp daemon
|
local hdd_temp = {} -- Get info from the hddtemp daemon
|
||||||
|
|
|
@ -44,7 +44,7 @@ local function worker(format, warg)
|
||||||
elseif string.sub(line, 1, string.len(warg)) == warg then
|
elseif string.sub(line, 1, string.len(warg)) == warg then
|
||||||
mddev[warg]["found"] = true
|
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
|
mddev[warg]["assigned"] = mddev[warg]["assigned"] + 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue