diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-02-25 05:32:57 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-02-25 05:32:57 -0500 |
commit | 352b62f793892590fb61cfe8395c2e09b44fe3eb (patch) | |
tree | ea2eb18edb834d87420891d8f20f4ba328618045 /ntpshmread.c | |
parent | 4492295a686082f9832bcc38b612cc37612d37d9 (diff) | |
download | gpsd-352b62f793892590fb61cfe8395c2e09b44fe3eb.tar.gz |
In tpmon, timestamp reports properly and deal with bad status.
Diffstat (limited to 'ntpshmread.c')
-rw-r--r-- | ntpshmread.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ntpshmread.c b/ntpshmread.c index e7362e8c..6ee03552 100644 --- a/ntpshmread.c +++ b/ntpshmread.c @@ -65,6 +65,9 @@ enum segstat_t shm_query(struct shmTime *shm_in, struct shm_stat_t *shm_stat) unsigned int cns_new, rns_new; int cnt; + shm_stat->now = 0; + time(&shm_stat->now); + if (shm == NULL) return NO_SEGMENT; if (!shm->valid) { |