Merge pull request #1796 from MilosKozak/basalrenderfix

fix basal rendering
This commit is contained in:
Milos Kozak 2019-05-15 22:02:48 +02:00 committed by GitHub
commit 2aea732326
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -391,6 +391,7 @@ public class IobCobCalculatorPlugin extends PluginBase {
}
public BasalData getBasalData(Profile profile, long time) {
synchronized (dataLock) {
long now = System.currentTimeMillis();
time = roundUpTime(time);
BasalData retval = basalDataTable.get(time);
@ -414,6 +415,7 @@ public class IobCobCalculatorPlugin extends PluginBase {
}
return retval;
}
}
@Nullable
public AutosensData getAutosensData(long time) {