Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use GeekTool to track network data transfer rates' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use GeekTool to track network data transfer rates
Authored by: mael on Aug 22, '09 02:06:51PM

Hi,

does anybody else have a problem with the last line?
> printf "in: %.2f Kb/sec\nout: %.2f Kb/sec\n" ${results[0]} ${results[1]}
Unfortunately I'll get the following error: "printf: invalid number".

Could this have something to do with my system settings? Here in Europe we usually expect a comma instead of a decimal point? Could it be that printf expects a comma but finds a decimal point and coughs up?



[ Reply to This | # ]