Merge "Age Second field in GNSS debug data is incorrect"

This commit is contained in:
qctecmdr 2019-05-09 05:51:19 -07:00 committed by Gerrit - the friendly Code Review server
commit b527967057

View file

@ -68,15 +68,15 @@ namespace loc_core
class SystemStatusItemBase
{
public:
timespec mUtcTime; // UTC timestamp when this info was last updated
timespec mUtcReported; // UTC timestamp when this info was reported
timespec mUtcTime;
timespec mUtcReported;
static const uint32_t maxItem = 5;
SystemStatusItemBase() {
struct timespec tv;
clock_gettime(CLOCK_MONOTONIC, &tv);
timeval tv;
gettimeofday(&tv, NULL);
mUtcTime.tv_sec = tv.tv_sec;
mUtcTime.tv_nsec = tv.tv_nsec;
mUtcTime.tv_nsec = tv.tv_usec*1000ULL;
mUtcReported = mUtcTime;
};
virtual ~SystemStatusItemBase() {};