1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

Fix CPU hogging.

Submitted by:	Brian Handy <handy@physics.montana.edu>
This commit is contained in:
Thomas Gellekum 1998-11-02 08:08:09 +00:00
parent c118c4a87c
commit 137f1976cb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=14300

View File

@ -0,0 +1,13 @@
--- WINGs/wevent.c.orig Wed Oct 21 14:43:55 1998
+++ WINGs/wevent.c Mon Oct 26 00:05:25 1998
@@ -387,6 +387,10 @@
} else {
delay->tv_sec = timerHandler->when.tv_sec - now.tv_sec;
delay->tv_usec = timerHandler->when.tv_usec - now.tv_usec;
+ if (delay->tv_usec < 0) {
+ delay->tv_usec += 1000000;
+ delay->tv_sec--;
+ }
}
}