aboutsummaryrefslogtreecommitdiff
path: root/src/xz
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-02-14 20:44:52 +0200
committerLasse Collin <lasse.collin@tukaani.org>2009-02-14 20:44:52 +0200
commit11ae4ae35fd70182c713f2d914b7cb1143bc76f0 (patch)
tree8d8d51cebe10dfddc883e1120e9033e9d435d994 /src/xz
parentCleanups to the code that detects the amount of RAM and (diff)
downloadxz-11ae4ae35fd70182c713f2d914b7cb1143bc76f0.tar.xz
Fix microsecond vs. nanosecond confusion in my_time().
Diffstat (limited to '')
-rw-r--r--src/xz/message.c2
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;
}