Fix cut and paste error on future sens.

This commit is contained in:
Tim Street 2022-07-15 22:12:16 +01:00 committed by GitHub
parent 4b1c3b0f22
commit c19b788430
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -838,7 +838,7 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
rT.reason += "Dosing sensitivity: " +future_sens+" using eventual BG;";
}
else if( glucose_status.delta > 0 && eventualBG > target_bg || eventualBG > bg && bg < 198 ) {
else if( glucose_status.delta > 0 && eventualBG > target_bg || eventualBG > bg ) {
var future_sens = ( 1800 / (Math.log((bg/ins_val)+1)*TDD));
//var future_sens_old = ( 277700 / (TDD * bg));
console.log("Future state sensitivity is " +future_sens+" using current bg due to small delta or variation");
@ -1318,4 +1318,4 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
};
module.exports = determine_basal;
module.exports = determine_basal;