mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 489815 - nsIIdleService.idleTime returns a value in microseconds on WinCE, and in milliseconds everywhere else. r=emaijala
This commit is contained in:
parent
cca4eaa78d
commit
b177617db5
@ -68,7 +68,7 @@ nsIdleServiceWin::GetIdleTime(PRUint32 *aTimeDiff)
|
||||
// we need to compare apples to apples - hence the nowTime variable
|
||||
PRUint32 nowTime = PR_IntervalToMicroseconds(PR_IntervalNow());
|
||||
|
||||
*aTimeDiff = SAFE_COMPARE_EVEN_WITH_WRAPPING(nowTime, gLastInputEventTime);
|
||||
*aTimeDiff = SAFE_COMPARE_EVEN_WITH_WRAPPING(nowTime, gLastInputEventTime) / 1000;
|
||||
#endif
|
||||
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user