Bug 516699 - Increase the interval between low-memory notifications. r=vlad

This commit is contained in:
Doug Turner 2009-09-15 11:33:53 -07:00
Родитель 8ebbb5dc03
Коммит 899cc6ac46
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -178,8 +178,8 @@ nsMemoryImpl::FlushMemory(const PRUnichar* aReason, PRBool aImmediate)
rv = RunFlushers(aReason);
}
else {
// Don't broadcast more than once every 100ms to avoid being noisy
if (PR_IntervalToMicroseconds(now - sLastFlushTime) > 100) {
// Don't broadcast more than once every 1000ms to avoid being noisy
if (PR_IntervalToMicroseconds(now - sLastFlushTime) > 1000) {
sFlushEvent.mReason = aReason;
rv = NS_DispatchToMainThread(&sFlushEvent, NS_DISPATCH_NORMAL);
}