258 if (($item['h_useat'] == 2) || ($item['h_useat'] == 4)) { // Boil or Whirlpool |
258 if (($item['h_useat'] == 2) || ($item['h_useat'] == 4)) { // Boil or Whirlpool |
259 $moment = $hopuse[$item['h_useat']].' '.$time." min"; |
259 $moment = $hopuse[$item['h_useat']].' '.$time." min"; |
260 } else if ($item['h_useat'] == 5) { // Dryhop |
260 } else if ($item['h_useat'] == 5) { // Dryhop |
261 $moment = $hopuse[$item['h_useat']].' '.sprintf("%.0f", $time / 1440).' dagen'; |
261 $moment = $hopuse[$item['h_useat']].' '.sprintf("%.0f", $time / 1440).' dagen'; |
262 } |
262 } |
263 $ibu = calc_IBU($item['h_useat'], $item['h_form'], $preboil_sg, floatval($row['batch_size']), $mass, $time, $alpha, $row['ibu_method']); |
263 $ibu = calc_IBU($item['h_useat'], $item['h_form'], $preboil_sg, floatval($row['batch_size']), $mass, $time, $alpha, |
|
264 $row['ibu_method'], $row['brew_whirlpool9'], $row['brew_whirlpool7'], $row['brew_whirlpool6']); |
264 $total_ibus += $ibu; |
265 $total_ibus += $ibu; |
265 |
266 |
266 if ($amount > 1) |
267 if ($amount > 1) |
267 $amount = sprintf("%.3f",$amount).' kg'; |
268 $amount = sprintf("%.3f",$amount).' kg'; |
268 else |
269 else |