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

@@ -1,8 +1,5 @@
package org.briarproject.system;
import java.io.File;
import java.io.IOException;
import org.briarproject.api.system.Clock;
import org.briarproject.api.system.FileUtils;
import org.briarproject.api.system.SeedProvider;
@@ -18,10 +15,6 @@ public class DesktopSystemModule extends AbstractModule {
bind(Timer.class).to(SystemTimer.class);
if(OsUtils.isLinux())
bind(SeedProvider.class).to(LinuxSeedProvider.class);
bind(FileUtils.class).toInstance(new FileUtils() {
public long getFreeSpace(File f) throws IOException {
return f.getFreeSpace();
}
});
bind(FileUtils.class).to(DesktopFileUtils.class);
}
}