зеркало из https://github.com/mozilla/pjs.git
Bug 489815 - nsIIdleService.idleTime returns a value in microseconds on WinCE, and in milliseconds everywhere else. r=emaijala
This commit is contained in:
Родитель
6f381dc293
Коммит
35e2c4d455
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче