From 11ae4ae35fd70182c713f2d914b7cb1143bc76f0 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sat, 14 Feb 2009 20:44:52 +0200 Subject: [PATCH] Fix microsecond vs. nanosecond confusion in my_time(). --- src/xz/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }