Skip to content
Snippets Groups Projects
Commit e737b17f authored by deuce's avatar deuce
Browse files

Fix all that bad match stuff. (Geeze)

parent 76cc7831
No related branches found
No related tags found
No related merge requests found
......@@ -673,7 +673,7 @@ tODMilliSec ODTimerLeft(tODTimer *pTimer)
{
#ifdef ODPLAT_NIX
struct timeval tv;
tODMilliSec nowtick;
long long int nowtick;
#endif
ASSERT(pTimer != NULL);
......@@ -695,10 +695,10 @@ tODMilliSec ODTimerLeft(tODTimer *pTimer)
}
#elif defined(ODPLAT_NIX)
gettimeofday(&tv,NULL);
nowtick=(long long)tv.tv_sec*1000-tv.tv_usec/1000;
if(pTimer->Start+pTimer->Duration <= nowtick)
nowtick=(long long)tv.tv_sec*1000+(tv.tv_usec/1000);
if((long long)pTimer->Start+pTimer->Duration <= nowtick)
return(0);
return(pTimer->Start - nowtick);
return((tODMilliSec)((long long)pTimer->Start + pTimer->Duration - nowtick));
#else /* !ODPLAT_DOS */
{
tODMilliSec Now;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment