deviant art





Login
Join deviantART for FREE Take the Tour Lost Password?
Deviant Login
Shop
 Join deviantART for FREE Take the Tour
[x]

More from ~wlourf

Featured in Groups:

Details

October 31, 2010
157 KB
Link
Thumb

Statistics

Comments: 14
Favourites: 5 [who?]
Views: 1,455 (1 today)
Downloads: 249 (0 today)
[x]
:iconwlourf:
A little widget to draw some graphs with some options.

Update 07.01.11 for bug fix on memory leaks
:icon:
Add a Comment:
 
love 0 0 joy 1 1 wow 0 0 mad 0 0 sad 0 0 fear 0 0 neutral 0 0
:iconjesuisnerd:
~JeSuisNerd Dec 6, 2011  Hobbyist Digital Artist
This is exactly what I needed! Thanks for the great widget.

--
> 25,000 children will die of starvation today. Why should God answer your prayers? <
Reply
:iconwlourf:
you're welcome, and thanks for the multiple favs ;-)

--
:tux: power !
Reply
:iconjesuisnerd:
~JeSuisNerd Dec 9, 2011  Hobbyist Digital Artist
My pleasure! Your conky work is great, and it wasn't very difficult to get it into londonali's script to work with multiple widgets.

--
> 25,000 children will die of starvation today. Why should God answer your prayers? <
Reply
:iconriprope:
Hi, great script, 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
Reply
:iconwlourf:
You're right about letters at the end ! The workaround is to replace theses lines :
---
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

--
:tux: power !
Reply
:iconriprope:
it show graph now (without autoscale is inaccurate and have a glitches :( ).

Thank you.

Best regards
Reply
:iconiacoporosso:
firstly... a really good job!!!!

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??
Reply
:iconwlourf:
Hi and thanks, it's just an error when the script is loading the first time.
On line 371, you can change :
if updates ==1 then
with
if updates<=1 then

Hth

--
:tux: power !
Reply
:iconiacoporosso:
thx man!!! i'll try!! :bounce:
Reply
:iconiacoporosso:
thx man!!!!!! i have tried and.... i have correct whit:

if updates>=1 then

and now it works!!!
Reply
:icon:
Add a Comment: