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
Родитель 6f381dc293
Коммит 35e2c4d455
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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