1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/x11-wm/windowmaker/files/patch-ai
Thomas Gellekum 137f1976cb Fix CPU hogging.
Submitted by:	Brian Handy <handy@physics.montana.edu>
1998-11-02 08:08:09 +00:00

14 lines
346 B
Plaintext

--- 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--;
+ }
}
}