The same calculation for boil_size in a new recipe.

Sat, 08 Oct 2022 14:45:29 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 08 Oct 2022 14:45:29 +0200
changeset 408
1c913473e4dd
parent 407
c2166b972811
child 409
9c78dd948aae

The same calculation for boil_size in a new recipe.

src/EditRecipe.cpp file | annotate | diff | comparison | revisions
--- 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