Skip to content

Commit

Permalink
fix: effectivity percent wrong magnitude
Browse files Browse the repository at this point in the history
  • Loading branch information
czabaj committed Sep 2, 2024
1 parent 1f8df32 commit 66e86e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/PlaceSetting/DepletedKegs.res
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ let make = (
->Array.map(keg => {
let volume = keg.milliliters
let kegId = Db.getUid(keg)
let effectivity = keg.consumptionsSum->Float.fromInt /. volume->Float.fromInt
let effectivity = keg.consumptionsSum->Float.fromInt /. volume->Float.fromInt *. 100.0
let priceLargeBeer =
(keg.price->Int.toFloat /. keg.milliliters->Int.toFloat *. 500.0)->Int.fromFloat

Expand Down

0 comments on commit 66e86e9

Please sign in to comment.