Update app.js

pull/668/head
nujw 2021-02-05 11:27:07 +13:00 committed by GitHub
parent fae839f86c
commit 0f8af3e8ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -244,9 +244,7 @@ function onGPS(fix) {
if (isNaN(di)) di = 0;
// Age of last fix (secs)
//age = Math.max(0,Math.round(getTime())-(lf.time.getTime()/1000));
var time = formatTime(lf.time);
age = timeSince(time);
age = Math.max(0,Math.round(getTime())-(lf.time.getTime()/1000));
if ( age > 90 ) age = '>90';
}