mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 516699 - Increase the interval between low-memory notifications. r=vlad
This commit is contained in:
parent
f7b71f7247
commit
c9d9c9ccf3
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user