| Customization / Skins & Themes / Linux and Unix Utilities / Applications / conky | ©2010-2013 ~wlourf |
The Journal Portal
Browse Journals |
Polls |
deviantART [dee·vee·un'nt·ART]
Keep in Touch!
|
Deviousness |
Thank you!
When using diskio, diskio_write or diskio_read variables, it trows error:
Conky: llua_do_call: function conky_main_graph execution failed: /d/lpapps/scripts/graph.lua:292: bad argument #2 to 'max' (number expected, got nil)
This is probably because diskio variables have B,KiB,MiB,or GiB letters at the end, so it is not a number for script.
Is there a way to overcome this, and use script to graph disk usage also.
Thanks in advance !
Denis
---
value=tonumber(conky_parse('${' ..
graph_settings[i].name .. " " ..
graph_settings[i].arg ..'}'))
---
by this :
---
value=conky_parse('${' ..
graph_settings[i].name .. " " ..
graph_settings[i].arg ..'}')
value=string.gsub(value,"%a","")
value=tonumber(value)
---
and use, in the table settings :
---
name="diskio",
arg="sdc",
max=100,
autoscale=true,
---
it should be better with autoscale, HTH
Thank you.
Best regards
but I have a problem when loading your lua widgets , it give me back this error:
Conky: llua_do_call: function conky_main_graph execution failed: /home/XXX/graph.lua:211: attempt to compare number with nil
(the XXX it is only ma path to file )
do you know how to fix this error??
On line 371, you can change :
if updates ==1 then
with
if updates<=1 then
Hth