another glucose status fix
This commit is contained in:
parent
74dcbb1864
commit
743350f4b3
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue