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:
parent
3084d662d2
commit
11ae4ae35f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue