From fcab1a267bbf420662a67155943e8fbbf284d631 Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Thu, 29 Jun 2017 19:38:38 +0200 Subject: [PATCH] adapt diadivisor --- .../androidaps/plugins/Treatments/TreatmentsPlugin.java | 2 +- app/src/main/res/xml/pref_advanced.xml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/TreatmentsPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/TreatmentsPlugin.java index 97fe9070dd..a40eb749b3 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/TreatmentsPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/TreatmentsPlugin.java @@ -182,7 +182,7 @@ public class TreatmentsPlugin implements PluginBase, TreatmentsInterface { Iob tIOB = t.iobCalc(time, dia); total.iob += tIOB.iobContrib; total.activity += tIOB.activityContrib; - Iob bIOB = t.iobCalc(time, dia / SP.getInt("openapsama_bolussnooze_dia_divisor", 2)); + Iob bIOB = t.iobCalc(time, dia / SP.getDouble("openapsama_bolussnooze_dia_divisor", 2.0)); total.bolussnooze += bIOB.iobContrib; } diff --git a/app/src/main/res/xml/pref_advanced.xml b/app/src/main/res/xml/pref_advanced.xml index 05898654fe..168f260841 100644 --- a/app/src/main/res/xml/pref_advanced.xml +++ b/app/src/main/res/xml/pref_advanced.xml @@ -103,14 +103,14 @@ android:title="@string/openapsama_autosens_adjusttargets" android:summary="@string/openapsama_autosens_adjusttargets_summary"/>