Improve traffic meter

Hi Temasek,

I haven't had time to test these changes: I didn't have a CM build environment, and some of the instructions I found required jumping through many hoops (on Mac at least). I did check that the code compiles. If you can validate this doesn't break everything, I will continue trying to improve this module, as noted in one of the commits.

Pierre