wattage_consumption: indent with tabs
wattage_consumption: fix to work with 0.20.4
wattage_consumption: refine some code style