Age Second field in GNSS debug data is incorrect
Change-Id: Iec28f9dbbc3b9cfe9a5d06e1f198a02cf09047be CRs-fixed: 2434780
This commit is contained in:
parent
2c71ec9e02
commit
bb5cbeed24
1 changed files with 5 additions and 5 deletions
|
@ -68,15 +68,15 @@ namespace loc_core
|
||||||
class SystemStatusItemBase
|
class SystemStatusItemBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
timespec mUtcTime; // UTC timestamp when this info was last updated
|
timespec mUtcTime;
|
||||||
timespec mUtcReported; // UTC timestamp when this info was reported
|
timespec mUtcReported;
|
||||||
static const uint32_t maxItem = 5;
|
static const uint32_t maxItem = 5;
|
||||||
|
|
||||||
SystemStatusItemBase() {
|
SystemStatusItemBase() {
|
||||||
struct timespec tv;
|
timeval tv;
|
||||||
clock_gettime(CLOCK_MONOTONIC, &tv);
|
gettimeofday(&tv, NULL);
|
||||||
mUtcTime.tv_sec = tv.tv_sec;
|
mUtcTime.tv_sec = tv.tv_sec;
|
||||||
mUtcTime.tv_nsec = tv.tv_nsec;
|
mUtcTime.tv_nsec = tv.tv_usec*1000ULL;
|
||||||
mUtcReported = mUtcTime;
|
mUtcReported = mUtcTime;
|
||||||
};
|
};
|
||||||
virtual ~SystemStatusItemBase() {};
|
virtual ~SystemStatusItemBase() {};
|
||||||
|
|
Loading…
Reference in a new issue