[Libwebsockets] The implemenation of gettimeofday is wrong on Windows

Arokux B. arokux at gmail.com
Mon Mar 4 19:59:29 CET 2013


Hi,

in win32port/win32helpers/gettimeofday.c first we need to convert to
microseconds and only then subtract.

This is the *correct* code:

		tmpres /= 10;  /*convert into microseconds*/

		/*converting file time to unix epoch*/
		tmpres -= DELTA_EPOCH_IN_MICROSECS;

Please correct it.

Thanks
Arokux



More information about the Libwebsockets mailing list