jerm014 / android-mileage

Automatically exported from code.google.com/p/android-mileage
0 stars 0 forks source link

Statistics calculated against partial fillups are very wrong #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add a complete fillup (to an empty db)
2. Add a partial
3. Add another partial
4. Look at the statistics

Expected behavior:
No statistics should be calculated

Actual behavior:
Statistics are calculated and they're very wrong.

Mileage version: 2.2.5
Android version: Irrelevant
Device: Irrelevant

Please use labels and text to provide additional information.

Original issue reported on code.google.com by evancharlton on 23 Dec 2010 at 9:36

GoogleCodeExporter commented 9 years ago
In version 3.0.5 recent changes have broken fuel efficiency calculation when 
you enter a partial fillup. Next time you add a fill-up, application reports 
fuel efficiency that is completely wrong. This is my case example:
1) add fill-up after another fill-up. app reports 6.75 l/100 km which is correct
2) add partial fill-up (12 litres, distance passed with previous fill-up ~600+ 
km)
3) add fill-up. app reports 23.52 l/100 km which is obviously not correct (42 
litres, distance - 180 km)
Attached is exported log file.

Original comment by t.nac...@gmail.com on 7 Mar 2011 at 1:46

Attachments:

GoogleCodeExporter commented 9 years ago
In addition to my previous comment: correct value should be 6.63 l/100km based 
on the values recorded in the attached csv file

Original comment by t.nac...@gmail.com on 7 Mar 2011 at 2:52

GoogleCodeExporter commented 9 years ago
Fixed here: 
http://code.google.com/p/android-mileage/source/detail?r=fd840d583a7a08f634616f9
b50d0c236c7fcc09b

Will be released with the next update.

Original comment by evancharlton on 14 Mar 2011 at 3:01

GoogleCodeExporter commented 9 years ago
3.0.8 still has the issue, will there be an update soon?

Original comment by petak...@gmail.com on 22 Nov 2011 at 7:55