From 0dd43d5c9a493f85bcad2b10e6fd29a4c2a397a2 Mon Sep 17 00:00:00 2001 From: CalDescent Date: Wed, 24 Nov 2021 14:22:57 +0000 Subject: [PATCH] Fixed bug in storage calculation --- .../controller/arbitrary/ArbitraryDataStorageManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/qortal/controller/arbitrary/ArbitraryDataStorageManager.java b/src/main/java/org/qortal/controller/arbitrary/ArbitraryDataStorageManager.java index 0eb7f5d9..1edd63a4 100644 --- a/src/main/java/org/qortal/controller/arbitrary/ArbitraryDataStorageManager.java +++ b/src/main/java/org/qortal/controller/arbitrary/ArbitraryDataStorageManager.java @@ -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; }