hargata/lubelog

Min / Max Fuel Economy when using l/100km

Closed this issue · 4 comments

I just noticed when calculating the fuel economy using Liters per 100 Kilometers, the Min and Max values in the Fuel tab are reversed.

image

Min displays the maximum fuel consumption and Max displays the minimum fuel consumption.
Is this behavior intended, because I think it originates from the MPG calculation (where Min would mean higher consumption and Max would mean lower consumption)?

Yes, this is functioning as intended, 7L/100Km is lower fuel mileage than 6L/100Km

Yes but that does not change the fact that 7 l/100km is not a mileage value but a consumption value.

Mileage: kilometers traveled per liter fuel
Consumption: liters consumed per 100 km

7 l/100km is equivalent to a lower mileage, e.g. about 14 km/l but they are just the oposite of one another.

It would be great to have an option to switch the displayed value between the two (with the correct labels), but I think it would require a differentiation between consumption and mileage.

You can toggle the fuel consumption units between l/100km and Km/L, it will also update the labels up top:

https://docs.lubelogger.com/Records/Fuel%20Records#alternate-fuel-units

That's a very convenient feature, but my point is that for the calculated values on top of the fuel table there should be a difference between Mileage and Consumption dependent on which value is shown.

Since e.g. in Germany values of l/100km are used in most cars, I would propose to introduce a second set of strings to differentiate between MPG and l/100km calculation, to ensure the lower value always gets the Min label and the higher value always gets the Max label:

Min/Max Mileage: when using Imperial calculation for km/l or MPG

Min/Max Consumption: when using the other calculation method for l/100km gal/100mi