Bug 1080473 - [Usage] Noticeable difference between by application break...

...down totals and the total displayed in chart and widget
Can you keep the function declarations at the top of the function, please? Simply move this after the `fixResidualTraffic()` declaration.