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
parent f7b71f7247
commit c9d9c9ccf3

View File

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