Hi All,

Whenever I try using conky + lua and need to use the 'max' function I am running into this error:

Conky: llua_do_call: function conky_main_bars execution failed: /home/joel/.conky/bargraph.lua:385: attempt to perform arithmetic on field 'max' (a string value)


Here is the code for the section of the lua script:

Code:
	local bars_settings={

		{
			name="fs_used",
			arg="/",
			max=conky_parse("${to_bytes ${fs_size /}}"),
			--alarm=1,--no alarm with 1 smooth block, don't do extra work here
			bg_colour={0x00ff00,0.25},
			fg_colour={0x00ff00,1},
			alarm_colour={0xff0000,1},
			x=5,y=112,
			angle=90,
			blocks=1,
			height=210,width=18,
			smooth=true,
			mid_colour={{0.5,0xffff00,1}},
		},