Load manager fixes.

This commit is contained in:
JoelKatz
2013-07-03 12:36:37 -07:00
parent da9cd1dcfe
commit bc5781e05d
2 changed files with 26 additions and 5 deletions

View File

@@ -210,7 +210,8 @@ private:
if (source.isPrivileged ()) // privileged sources never warn/cutoff
return false;
if ((source.mBalance >= mDebitLimit) && (source.mLastWarning == now)) // no need to warn
if ( (source.mBalance >= mDebitWarn) ||
((source.mBalance >= mDebitLimit) && (source.mLastWarning == now)))
return false;
return true;