deviant art

Deviant Login Shop  Join deviantART for FREE Take the Tour
[x]
Shop Similar Prints
This Print Not Available
Download File
ZIP, 157 KB
more ▶

More from ~wlourf

Featured in Groups:

Details

October 31, 2010
157 KB
Link
Thumb

Statistics

Comments: 15
Favourites: 6 [who?]

Views: 2,430 (1 today)
Downloads: 363 (0 today)
[x]
:iconwlourf:
A little widget to draw some graphs with some options.

Update 07.01.11 for bug fix on memory leaks
Add a Comment:
 
love 1 1 joy 1 1 wow 0 0 mad 0 0 sad 0 0 fear 0 0 neutral 0 0
:iconn00by4ever:
Just want to say that you've done an amazing job, this is a very nice extension of conky.

Thank you!
Reply
:iconjesuisnerd:
~JeSuisNerd Dec 6, 2011  Hobbyist Digital Artist
This is exactly what I needed! Thanks for the great widget.
Reply
:iconwlourf:
you're welcome, and thanks for the multiple favs ;-)
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.
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
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
Reply
:iconiacoporosso:
thx man!!! i'll try!! :bounce:
Reply
Add a Comment: