forked from enlightenment/efl
* 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:
parent
071969c41f
commit
5f5973c6c2
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue