Show more debugging info: system memory, VM memory and disk space.

This commit is contained in:
akwizgran
2014-04-10 15:46:53 +01:00
parent ab76b4a9e3
commit 0eaf46209c
7 changed files with 91 additions and 28 deletions

View File

@@ -7,7 +7,11 @@ import org.briarproject.api.system.FileUtils;
public class TestFileUtils implements FileUtils {
public long getTotalSpace(File f) throws IOException {
return f.getTotalSpace(); // Requires Java 1.6
}
public long getFreeSpace(File f) throws IOException {
return f.getFreeSpace();
return f.getUsableSpace(); // Requires Java 1.6
}
}