mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2024-12-29 09:21:19 +00:00
Fix bug in m_sleep()
This commit is contained in:
parent
4c88345f19
commit
dfbf9c711d
@ -35,6 +35,7 @@ Bugfix
|
||||
Alex Wilson.)
|
||||
* Fixed bug in ssl_cache: when max_entries = 0 and TIMING_C is enabled,
|
||||
entries would still be created.
|
||||
* Fixed bug in m_sleep: whould sleep twice too long on most Unix platforms.
|
||||
|
||||
= PolarSSL 1.3.4 released on 2014-01-27
|
||||
Features
|
||||
|
@ -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…
Reference in New Issue
Block a user