src/EditRecipe.cpp

changeset 408
1c913473e4dd
parent 395
7212b980a527
--- a/src/EditRecipe.cpp	Sat Oct 08 14:33:36 2022 +0200
+++ b/src/EditRecipe.cpp	Sat Oct 08 14:45:29 2022 +0200
@@ -118,7 +118,7 @@
 	recipe->efficiency = 75;
 	recipe->batch_size = 20;
 	recipe->boil_time = 60;
-	recipe->boil_size = recipe->batch_size + (round(recipe->batch_size * recipe->boil_time / 60.0) / 10.0);
+	recipe->boil_size = recipe->batch_size + ((0.1 * recipe->batch_size) * recipe->boil_time / 60.0);
 	recipe->type = 2;
 	recipe->est_og = recipe->est_fg = recipe->est_color = recipe->est_ibu = recipe->est_abv = 0;
 	recipe->sparge_temp = 80;

mercurial