another glucose status fix

This commit is contained in:
Milos Kozak 2016-06-11 23:34:18 +02:00
parent 74dcbb1864
commit 743350f4b3

View file

@ -184,7 +184,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
int sizeRecords = bgReadings.size(); int sizeRecords = bgReadings.size();
if (sizeRecords < 4 || bgReadings.get(sizeRecords - 1).timestamp > new Date().getTime() - 7 * 60 * 1000l) if (sizeRecords < 4 || bgReadings.get(sizeRecords - 4).timestamp < new Date().getTime() - 7 * 60 * 1000l)
return null; return null;
int minutes = 5; int minutes = 5;