Merge pull request #9 from MilosKozak/master

another glucose status fix
This commit is contained in:
LadyViktoria 2016-06-12 09:07:21 +02:00 committed by GitHub
commit f82d6a3ab7

View file

@ -184,7 +184,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
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;
int minutes = 5;