Bug 489815 - nsIIdleService.idleTime returns a value in microseconds on WinCE, and in milliseconds everywhere else. r=emaijala

This commit is contained in:
Florian Quèze 2009-04-25 16:32:18 +02:00
parent cca4eaa78d
commit b177617db5

View File

@ -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;