Skip to content

Commit

Permalink
Merge da5226d into 2ee4832
Browse files Browse the repository at this point in the history
  • Loading branch information
warstar2187 authored Dec 2, 2016
2 parents 2ee4832 + da5226d commit c4b131c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/iob.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function init(ctx) {
} else if (minAgo < 180) {
var x2 = (minAgo - 75) / 5;
result.iobContrib = treatment.insulin * (0.001323 * x2 * x2 - 0.054233 * x2 + 0.55556);
result.activityContrib = sens * treatment.insulin * (2 / dia / 60 - (minAgo - peak) * 2 / dia / 60 / (60 * dia - peak));
result.activityContrib = sens * treatment.insulin * (2 / dia / 60 - (minAgo - peak) * 2 / dia / 60 / (60 * 3 - peak));
}

}
Expand Down

0 comments on commit c4b131c

Please sign in to comment.