Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have the following widget definition:

netwidget = widget({ type = "textbox" })
vicious.register(netwidget, vicious.widgets.net, '<span color="#CC9393">${p17p1 down_kb}</span> <span color="#7F9F7F">${p17p1 up_kb}</span>', 3)

Which prints network usage on /dev/p17p1.

How can I make those numbers be a fixed width say, %3.2f or something?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.