mirror of https://git.tukaani.org/xz.git
Fix microsecond vs. nanosecond confusion in my_time().
This commit is contained in:
parent
3084d662d2
commit
11ae4ae35f
|
@ -144,7 +144,7 @@ my_time(void)
|
||||||
if (gettimeofday(&tv, NULL))
|
if (gettimeofday(&tv, NULL))
|
||||||
return -1.0;
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue