mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-118718 Occasionally seeing "Low disk space on a IntelliJ IDEA system directory partition"
This commit is contained in:
@@ -139,13 +139,13 @@ public class SystemHealthMonitor extends ApplicationComponent.Adapter {
|
||||
}
|
||||
}));
|
||||
}
|
||||
if (!future.isDone()) {
|
||||
if (!future.isDone() || future.isCancelled()) {
|
||||
JobScheduler.getScheduler().schedule(this, 1, TimeUnit.SECONDS);
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
final long fileUsableSpace = future.isCancelled() ? 0 : future.get();
|
||||
final long fileUsableSpace = future.get();
|
||||
final long timeout = Math.max(5, (fileUsableSpace - LOW_DISK_SPACE_THRESHOLD) / MAX_WRITE_SPEED_IN_BPS);
|
||||
ourFreeSpaceCalculation.set(null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user