I have tried it. First of all, finally it looks like this:

args['{'..name..' down_kb}'] = helper.padd
((math.floor(down/1024*10)/10), padding)
args['{'..name..' up_kb}'] = helper.padd ((math.floor(up/1024*10)/10), padding)

Second, It WORKS! For example, download speed looks like "000" or
"123", but when decimal point appears it looks like "0000.2".
"Jumping" again.

Now it wold be great to find make it in "000.0" form forever.
I almoust happy.



2009/3/10 Владимир Байраковский <[email protected]>:
> Wow! Thank you! I'll try it at home.
>
> 2009/3/10 Damien Rajon <[email protected]>:
>> On Tue, Mar 10, 2009 at 1:40 AM, Damien Rajon <[email protected]> wrote:
>>> Here is the diff:
>>> py...@home$ diff wicked.lua /usr/share/awesome/lib/wicked.lua
>>> 570,571c570,571
>>> <                 args['{'..name..' down_kb}'] = math.floor(down/1024*10)/10
>>> <                 args['{'..name..' up_kb}'] = math.floor(up/1024*10)/10
>>> ---
>>>>                 args['{'..name..' down_kb}'] = helper.padd 
>>>> (math.floor(down/1024), 4)
>>>>                 args['{'..name..' up_kb}'] = 
>>>> helper.padd(math.floor(up/1024), 4)
>>
>>                               ^^^^^^
>> This should read:
>> helper.padd (math.floor(down/1024*10)/10), 4)
>> helper.padd (math.floor(up/1024*10)/10), 4)
>>
>> --
>> Damien "pyrho" Rajon
>>
>> --
>> To unsubscribe, send mail to [email protected].
>>
>

--
To unsubscribe, send mail to [email protected].

Reply via email to