www/js/rec_edit.js

changeset 382
547c23b50d00
parent 381
0ec81755396e
child 392
544d7d0183b2
equal deleted inserted replaced
381:0ec81755396e 382:547c23b50d00
360 row.h_useat, parseFloat(row.h_amount)); 360 row.h_useat, parseFloat(row.h_amount));
361 hop_aroma += hopAromaContribution(parseFloat(row.h_time), parseFloat(dataRecord.batch_size), 361 hop_aroma += hopAromaContribution(parseFloat(row.h_time), parseFloat(dataRecord.batch_size),
362 row.h_useat, parseFloat(row.h_amount)); 362 row.h_useat, parseFloat(row.h_amount));
363 } 363 }
364 total_ibus = Math.round(total_ibus * 10) / 10; 364 total_ibus = Math.round(total_ibus * 10) / 10;
365 hop_flavour = Math.round(hop_flavour * 1000 / 7.5) / 10; 365 hop_flavour = Math.round(hop_flavour * 1000 / 5) / 10;
366 hop_aroma = Math.round(hop_aroma * 1000 / 9) / 10; 366 hop_aroma = Math.round(hop_aroma * 1000 / 6) / 10;
367 if (hop_flavour > 100) 367 if (hop_flavour > 100)
368 hop_flavour = 100; 368 hop_flavour = 100;
369 if (hop_aroma > 100) 369 if (hop_aroma > 100)
370 hop_aroma = 100; 370 hop_aroma = 100;
371 console.log("calcIBUs(): " + total_ibus + " flavour: " + hop_flavour + " aroma: " + hop_aroma); 371 console.log("calcIBUs(): " + total_ibus + " flavour: " + hop_flavour + " aroma: " + hop_aroma);

mercurial