diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2009-02-14 20:44:52 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2009-02-14 20:44:52 +0200 |
commit | 11ae4ae35fd70182c713f2d914b7cb1143bc76f0 (patch) | |
tree | 8d8d51cebe10dfddc883e1120e9033e9d435d994 /src | |
parent | Cleanups to the code that detects the amount of RAM and (diff) | |
download | xz-11ae4ae35fd70182c713f2d914b7cb1143bc76f0.tar.xz |
Fix microsecond vs. nanosecond confusion in my_time().
Diffstat (limited to 'src')
-rw-r--r-- | src/xz/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xz/message.c b/src/xz/message.c index 544572b8..a89c5a4e 100644 --- a/src/xz/message.c +++ b/src/xz/message.c @@ -144,7 +144,7 @@ my_time(void) if (gettimeofday(&tv, NULL)) return -1.0; - return (double)(tv.tv_sec) + (double)(tv.tv_usec) / 1.0e9; + return (double)(tv.tv_sec) + (double)(tv.tv_usec) / 1.0e6; } |