Fixed bug in storage calculation

This commit is contained in:
CalDescent 2021-11-24 14:22:57 +00:00
parent e879bd0fc5
commit 0dd43d5c9a

View File

@ -296,7 +296,7 @@ public class ArbitraryDataStorageManager extends Thread {
return false;
}
long maxStorageCapacity = (long)((double)this.storageCapacity / 100.0f * threshold);
long maxStorageCapacity = (long)((double)this.storageCapacity * threshold);
if (this.totalDirectorySize >= maxStorageCapacity) {
return false;
}