don't dump threads every single second when UNRESPONSIVE_THRESHOLD_SECONDS is 1 (IDEA-156259)

This commit is contained in:
peter
2016-05-19 12:17:16 +02:00
parent b9fac2dcbf
commit 6da6866c47
@@ -206,7 +206,7 @@ public class PerformanceWatcher implements ApplicationComponent {
}
long sinceLastEdt = millis - myLastAliveEdt;
if (sinceLastEdt >= UNRESPONSIVE_THRESHOLD_SECONDS * 1000) {
if (sinceLastEdt >= UNRESPONSIVE_THRESHOLD_SECONDS * 1000 + 10) {
edtFrozen(millis);
}
else if (sinceLastEdt <= SAMPLING_INTERVAL_MS) {