fixing logic errors in fuel_analysis. need pre and post packets on tperiod.