mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
introduced idea.no.system.path.space.monitoring property to skip checks for free space because it fails for yet unrecognized reasons (IDEA-118718)
This commit is contained in:
@@ -33,6 +33,7 @@ import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.openapi.wm.WindowManager;
|
||||
import com.intellij.ui.HyperlinkAdapter;
|
||||
import com.intellij.ui.awt.RelativePoint;
|
||||
import com.intellij.util.SystemProperties;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.PropertyKey;
|
||||
|
||||
@@ -119,6 +120,7 @@ public class SystemHealthMonitor extends ApplicationComponent.Adapter {
|
||||
}
|
||||
|
||||
private static void startDiskSpaceMonitoring() {
|
||||
if (SystemProperties.getBooleanProperty("idea.no.system.path.space.monitoring", false)) return;
|
||||
final File file = new File(PathManager.getSystemPath());
|
||||
final AtomicBoolean reported = new AtomicBoolean();
|
||||
final ThreadLocal<Future<Long>> ourFreeSpaceCalculation = new ThreadLocal<Future<Long>>();
|
||||
|
||||
Reference in New Issue
Block a user