Skip to content

Commit

Permalink
Fixing timestamp display in sensor generator cards.
Browse files Browse the repository at this point in the history
  • Loading branch information
audaciouscode committed May 15, 2017
1 parent b092533 commit 5635519
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -628,7 +628,7 @@ public static long latestPointGenerated(Context context) {
Cursor c = me.mDatabase.query(Accelerometer.TABLE_HISTORY, null, null, null, null, null, Accelerometer.HISTORY_OBSERVED + " DESC", "1");

if (c.moveToNext()) {
me.mLatestTimestamp = c.getLong(c.getColumnIndex(Accelerometer.HISTORY_OBSERVED) / 1000);
me.mLatestTimestamp = c.getLong(c.getColumnIndex(Accelerometer.HISTORY_OBSERVED)) / (1000 * 1000);
}

c.close();
Expand Down
Expand Up @@ -473,7 +473,7 @@ public static long latestPointGenerated(Context context) {
Cursor c = me.mDatabase.query(AmbientLight.TABLE_HISTORY, null, null, null, null, null, Accelerometer.HISTORY_OBSERVED + " DESC", "1");

if (c.moveToNext()) {
me.mLatestTimestamp = c.getLong(c.getColumnIndex(Accelerometer.HISTORY_OBSERVED) / (1000 * 1000));
me.mLatestTimestamp = c.getLong(c.getColumnIndex(AmbientLight.HISTORY_OBSERVED) / (1000 * 1000));
}

c.close();
Expand Down

0 comments on commit 5635519

Please sign in to comment.