3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-07 06:44:16 +00:00

Threading: print fewer warnings of excess closure buildup. We should really use a rate limiter here.

This commit is contained in:
Mike Hearn 2015-01-12 16:44:10 +01:00
parent 5f07f98c05
commit d7118d524e

View File

@ -116,7 +116,7 @@ public class Threading {
@Override
public void execute(Runnable command) {
final int size = tasks.size();
if (size > WARNING_THRESHOLD) {
if (size == WARNING_THRESHOLD) {
log.warn(
"User thread has {} pending tasks, memory exhaustion may occur.\n" +
"If you see this message, check your memory consumption and see if it's problematic or excessively spikey.\n" +