fix xlib timer bug. this is not part of the build.

git-svn-id: svn://10.0.0.236/trunk@43774 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
blizzard%redhat.com
1999-08-20 03:26:54 +00:00
parent 43fc5965e9
commit b473523a9c

View File

@@ -271,7 +271,10 @@ int NS_TimeToNextTimeout(struct timeval *aTimer)
return 1;
}
else {
aTimer->tv_sec -= timer->mFireTime.tv_sec;
if (aTimer->tv_sec < timer->mFireTime.tv_sec)
aTimer->tv_sec = timer->mFireTime.tv_sec - aTimer->tv_sec;
else
aTimer->tv_sec = 0;
// handle the overflow case
if (aTimer->tv_usec < timer->mFireTime.tv_usec) {
aTimer->tv_usec = timer->mFireTime.tv_usec - aTimer->tv_usec;