summaryrefslogtreecommitdiff
path: root/legacy/evil
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2010-02-12 16:03:08 +0000
committerVincent Torri <vincent.torri@gmail.com>2010-02-12 16:03:08 +0000
commit5f5973c6c2c447f0602b0090bf1947db2d0759d0 (patch)
tree8063509ef8137e6f27073be4c619e4353f56669d /legacy/evil
parent071969c41f794ce09b28f0895d4d2b7568f14be4 (diff)
* src/lib/evil_unistd.c:
fix gettimeofday(). Thanks to Mathieu SCHROETER, from the GeexBox project, for having spotted this. SVN revision: 46116
Diffstat (limited to 'legacy/evil')
-rw-r--r--legacy/evil/ChangeLog6
-rw-r--r--legacy/evil/src/lib/evil_unistd.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/legacy/evil/ChangeLog b/legacy/evil/ChangeLog
index 2f16d88fdb..3f794defe0 100644
--- a/legacy/evil/ChangeLog
+++ b/legacy/evil/ChangeLog
@@ -1,3 +1,9 @@
12010-02-12 Vincent Torri <doursse at users dot sf dot net>
2
3 * src/lib/evil_unistd.c:
4 fix gettimeofday(). Thanks to Mathieu SCHROETER,
5 from the GeexBox project, for having spotted this.
6
12010-01-30 Vincent Torri <doursse at users dot sf dot net> 72010-01-30 Vincent Torri <doursse at users dot sf dot net>
2 8
3 * src/lib/evil_fcntl.c: 9 * src/lib/evil_fcntl.c:
diff --git a/legacy/evil/src/lib/evil_unistd.c b/legacy/evil/src/lib/evil_unistd.c
index 32c233560e..ad6595be86 100644
--- a/legacy/evil/src/lib/evil_unistd.c
+++ b/legacy/evil/src/lib/evil_unistd.c
@@ -73,7 +73,7 @@ evil_gettimeofday(struct timeval *tp, void *tzp __UNUSED__)
73 QueryPerformanceCounter(&count); 73 QueryPerformanceCounter(&count);
74 diff = count.QuadPart - _evil_time_count; 74 diff = count.QuadPart - _evil_time_count;
75 tp->tv_sec = _evil_time_second + diff / _evil_time_freq; 75 tp->tv_sec = _evil_time_second + diff / _evil_time_freq;
76 tp->tv_usec = (diff % _evil_time_freq) * 1000000000ll; 76 tp->tv_usec = ((diff % _evil_time_freq) * 1000000ll) / _evil_time_freq;
77 77
78 return 1; 78 return 1;
79} 79}