Fix 100% CPU utilization (runtime tested on FreeBSD 11.0, i386)
Bump PORTREVISION PR: 211791 Submitted by: <steven@freebsd-bugzilla.sdwmail.homeunix.org> MFH: 2016Q4
This commit is contained in:
parent
ad2350c8fa
commit
db93717ea5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=424989
2 changed files with 12 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
PORTNAME= xmris
|
||||
PORTVERSION= 4.04
|
||||
PORTREVISION= 4
|
||||
PORTREVISION= 5
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= XCONTRIB/games
|
||||
DISTNAME= ${PORTNAME}.${PORTVERSION}
|
||||
|
|
|
@ -9,3 +9,14 @@
|
|||
#else
|
||||
# ifdef __hpux /* hpux is a weird mixture of BSD & SYSV */
|
||||
/* don't know if this is right */
|
||||
@@ -572,7 +572,10 @@ extern VOIDFUNC timer_wait FUNCARGVOID
|
||||
else
|
||||
{
|
||||
while(!tickafter(now, timer.timeout))
|
||||
+ {
|
||||
+ usleep(tickdelta(timer.timeout, now) * TICKTIME);
|
||||
gettick(&now);
|
||||
+ }
|
||||
timer.timeout = tickadd(timer.timeout, timer.delay);
|
||||
point = -1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue