connected filesystem stats

This commit is contained in:
Sebastian Stenzel
2016-12-20 10:45:40 +01:00
parent 5a3428d9b0
commit e09ee27219

View File

@@ -187,13 +187,21 @@ public class Vault {
}
public long pollBytesRead() {
// TODO overheadhunter implement.
return 0l;
CryptoFileSystem fs = cryptoFileSystem.get();
if (fs != null) {
return fs.getStats().pollBytesRead();
} else {
return 0l;
}
}
public long pollBytesWritten() {
// TODO overheadhunter implement.
return 0l;
CryptoFileSystem fs = cryptoFileSystem.get();
if (fs != null) {
return fs.getStats().pollBytesWritten();
} else {
return 0l;
}
}
public String getMountName() {