1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

Fix microsecond vs. nanosecond confusion in my_time().

This commit is contained in:
Lasse Collin 2009-02-14 20:44:52 +02:00
parent 3084d662d2
commit 11ae4ae35f

View file

@ -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;
}