mirror of
https://github.com/curl/curl.git
synced 2026-04-14 21:41:41 +03:00
parent
bd15d8beb3
commit
448caab0df
1 changed files with 1 additions and 1 deletions
|
|
@ -84,5 +84,5 @@ struct timeval *curlx_mstotv(struct timeval *tv, timediff_t ms)
|
|||
*/
|
||||
timediff_t curlx_tvtoms(struct timeval *tv)
|
||||
{
|
||||
return (tv->tv_sec*1000) + (timediff_t)(((double)tv->tv_usec)/1000.0);
|
||||
return (tv->tv_sec*1000) + (timediff_t)(tv->tv_usec/1000);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue