summaryrefslogtreecommitdiff
path: root/ntpshmread.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-06-16 21:14:43 -0700
committerGary E. Miller <gem@rellim.com>2016-06-16 21:14:43 -0700
commit804c0fa71af1c68acdd00bbcfb25f0266090d9c6 (patch)
tree086d6b478bd2df4d18ff5ebad7681af8b723ad63 /ntpshmread.c
parentcb848db6eacc9cb755a8bb4a1354ab7fd18342fe (diff)
downloadgpsd-804c0fa71af1c68acdd00bbcfb25f0266090d9c6.tar.gz
Only read the system clock for tvc is we are going to use it.
Stop reading time that is just going to be thrown away.
Diffstat (limited to 'ntpshmread.c')
-rw-r--r--ntpshmread.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ntpshmread.c b/ntpshmread.c
index 7e5ceff6..8283b6b4 100644
--- a/ntpshmread.c
+++ b/ntpshmread.c
@@ -67,8 +67,6 @@ enum segstat_t ntp_read(struct shmTime *shm_in, struct shm_stat_t *shm_stat, con
shm_stat->tvc.tv_sec = shm_stat->tvc.tv_nsec = 0;
- clock_gettime(CLOCK_REALTIME, &shm_stat->tvc);
-
/* relying on word access to be atomic here */
if (shm->valid == 0) {
shm_stat->status = NOT_READY;