fix AS calculation
This commit is contained in:
parent
3174b8219e
commit
15586abe52
1 changed files with 2 additions and 2 deletions
|
@ -208,10 +208,10 @@ public class SensitivityOref1Plugin extends AbstractSensitivityPlugin {
|
||||||
double basalOff = 0;
|
double basalOff = 0;
|
||||||
|
|
||||||
if (pSensitive < 0) { // sensitive
|
if (pSensitive < 0) { // sensitive
|
||||||
basalOff = pSensitive * (60.0 / 5) / Profile.toMgdl(sens, profile.getUnits());
|
basalOff = pSensitive * (60.0 / 5) / sens;
|
||||||
sensResult += "Excess insulin sensitivity detected";
|
sensResult += "Excess insulin sensitivity detected";
|
||||||
} else if (pResistant > 0) { // resistant
|
} else if (pResistant > 0) { // resistant
|
||||||
basalOff = pResistant * (60.0 / 5) / Profile.toMgdl(sens, profile.getUnits());
|
basalOff = pResistant * (60.0 / 5) / sens;
|
||||||
sensResult += "Excess insulin resistance detected";
|
sensResult += "Excess insulin resistance detected";
|
||||||
} else {
|
} else {
|
||||||
sensResult += "Sensitivity normal";
|
sensResult += "Sensitivity normal";
|
||||||
|
|
Loading…
Reference in a new issue