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:
parent
c118c4a87c
commit
137f1976cb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=14300
13
x11-wm/windowmaker/files/patch-ai
Normal file
13
x11-wm/windowmaker/files/patch-ai
Normal 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--;
|
||||
+ }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user