Skip to content

Commit

Permalink
Update StatPage.qml (vedderb#341)
Browse files Browse the repository at this point in the history
Should be changed to division to represent Wh/km * 1 km / 0.62 mi instead of Wh/km * 0.62 mi / 1 km.
  • Loading branch information
Izzygit authored Dec 4, 2023
1 parent 856bd3b commit 9219abe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobile/StatPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Item {
tripText.text =
"Time : " + new Date(val.count_time * 1000).toISOString().substr(11, 8) + "\n" +
"Distance : " + parseFloat(val.distance()).toFixed(2) + " m\n" +
"Efficiency : " + parseFloat(val.efficiency() * impFact).toFixed(3) + " " + efficiencyUnit + "\n" +
"Efficiency : " + parseFloat(val.efficiency() / impFact).toFixed(3) + " " + efficiencyUnit + "\n" +
"Energy : " + parseFloat(val.energy()).toFixed(3) + " Wh\n" +
"Ah : " + parseFloat(val.ah()).toFixed(3) + " Ah\n" +
"Speed Avg : " + parseFloat(val.speed_avg * 3.6 * impFact).toFixed(1) + " " + speedUnit + "\n" +
Expand Down

0 comments on commit 9219abe

Please sign in to comment.