mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
Fix bug in m_sleep()
This commit is contained in:
parent
4c88345f19
commit
dfbf9c711d
2 changed files with 2 additions and 1 deletions
|
|
@ -302,7 +302,7 @@ void m_sleep( int milliseconds )
|
|||
struct timeval tv;
|
||||
|
||||
tv.tv_sec = milliseconds / 1000;
|
||||
tv.tv_usec = milliseconds * 1000;
|
||||
tv.tv_usec = ( milliseconds % 1000 ) * 1000;
|
||||
|
||||
select( 0, NULL, NULL, NULL, &tv );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue