diff --git a/app/src/main/java/info/nightscout/androidaps/db/CareportalEvent.java b/app/src/main/java/info/nightscout/androidaps/db/CareportalEvent.java index 643b5d066c..7302475a4e 100644 --- a/app/src/main/java/info/nightscout/androidaps/db/CareportalEvent.java +++ b/app/src/main/java/info/nightscout/androidaps/db/CareportalEvent.java @@ -98,9 +98,9 @@ public class CareportalEvent implements DataPointWithLabelInterface { return diff.get(TimeUnit.DAYS) + " " + MainApp.sResources.getString(R.string.days) + " " + diff.get(TimeUnit.HOURS) + " " + MainApp.sResources.getString(R.string.hours); } - public boolean isOlderThan(double threshold) { + public boolean isOlderThan(double days) { Map diff = computeDiff(date, System.currentTimeMillis()); - if(diff.get(TimeUnit.DAYS) > threshold) + if(diff.get(TimeUnit.DAYS) > days) return true; else return false;