Merge pull request #9 from MilosKozak/master
another glucose status fix
This commit is contained in:
commit
f82d6a3ab7
1 changed files with 1 additions and 1 deletions
|
@ -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