From 7f97b232da6ad509468b1da7ce175cffe91ea3be Mon Sep 17 00:00:00 2001 From: warstar2187 Date: Tue, 29 Nov 2016 12:08:45 +0900 Subject: [PATCH] Update Treatment.java --- app/src/main/java/info/nightscout/androidaps/db/Treatment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/db/Treatment.java b/app/src/main/java/info/nightscout/androidaps/db/Treatment.java index 3c08789f80..f7a40284d6 100644 --- a/app/src/main/java/info/nightscout/androidaps/db/Treatment.java +++ b/app/src/main/java/info/nightscout/androidaps/db/Treatment.java @@ -78,7 +78,7 @@ public class Treatment implements DataPointWithLabelInterface { } else if (minAgo < end) { Double x2 = (minAgo - 75) / 5; result.iobContrib = this.insulin * (0.001323 * x2 * x2 - 0.054233 * x2 + 0.55556); - result.activityContrib = this.insulin * (2 / dia / 60 - (minAgo - peak) * 2 / dia / 60 / (60 * dia - peak)); + result.activityContrib = this.insulin * (2 / dia / 60 - (minAgo - peak) * 2 / dia / 60 / (60 * 3 - peak)); } } return result;