Changed disk space to use space available to current user

This commit is contained in:
Risto Lahtela 2020-03-13 10:19:11 +02:00
parent 0224571a50
commit d6e920c31d

View File

@ -75,7 +75,7 @@ public class SystemUsage {
*/
public static long getFreeDiskSpace() {
File file = new File(new File("").getAbsolutePath());
return file.getFreeSpace() / 1000000L;
return file.getUsableSpace() / 1000000L;
}
}