diff options
author | Gary E. Miller <gem@rellim.com> | 2016-07-27 15:17:02 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-07-27 15:17:02 -0700 |
commit | 358e19f1373c88f32e478d587f1d6164b2c7c653 (patch) | |
tree | 1602a47039251fbf07357b3cfed1d0d902ca1cdd /contrib | |
parent | 1921de2876c5cb8448d5eeb4bf827e5df1009be3 (diff) | |
download | gpsd-358e19f1373c88f32e478d587f1d6164b2c7c653.tar.gz |
Too many digits in nanoSecs
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ppscheck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/ppscheck.c b/contrib/ppscheck.c index 9348ac19..32d610ca 100644 --- a/contrib/ppscheck.c +++ b/contrib/ppscheck.c @@ -86,7 +86,7 @@ int main(int argc, char *argv[]) (void)clock_gettime(CLOCK_REALTIME, &ts); (void)ioctl(fd, TIOCMGET, &handshakes); - (void)fprintf(stdout, "%10ld %010ld", ts.tv_sec, ts.tv_nsec); + (void)fprintf(stdout, "%10ld %09ld", ts.tv_sec, ts.tv_nsec); for (sp = hlines; sp < hlines + sizeof(hlines)/sizeof(hlines[0]); sp++) |