* src/lib/evil_unistd.c:

fix gettimeofday(). Thanks to Mathieu SCHROETER,
	from the GeexBox project, for having spotted this.



SVN revision: 46116
This commit is contained in:
Vincent Torri 2010-02-12 16:03:08 +00:00
parent 071969c41f
commit 5f5973c6c2
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2010-02-12 Vincent Torri <doursse at users dot sf dot net>
* src/lib/evil_unistd.c:
fix gettimeofday(). Thanks to Mathieu SCHROETER,
from the GeexBox project, for having spotted this.
2010-01-30 Vincent Torri <doursse at users dot sf dot net>
* src/lib/evil_fcntl.c:

View File

@ -73,7 +73,7 @@ evil_gettimeofday(struct timeval *tp, void *tzp __UNUSED__)
QueryPerformanceCounter(&count);
diff = count.QuadPart - _evil_time_count;
tp->tv_sec = _evil_time_second + diff / _evil_time_freq;
tp->tv_usec = (diff % _evil_time_freq) * 1000000000ll;
tp->tv_usec = ((diff % _evil_time_freq) * 1000000ll) / _evil_time_freq;
return 1;
}