Merge pull request #9 from MilosKozak/master
another glucose status fix
This commit is contained in:
commit
f82d6a3ab7
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue