From 022fbaa1af79d6530f1708145f96c23ba2e3e5bf Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Fri, 20 Mar 2020 03:47:08 -0500 Subject: [PATCH] bumped disk allocation to 1gb --- src/onionrblocks/storagecounter.py | 4 ++-- static-data/default_config.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/onionrblocks/storagecounter.py b/src/onionrblocks/storagecounter.py index 42cf7c64..bf919d69 100755 --- a/src/onionrblocks/storagecounter.py +++ b/src/onionrblocks/storagecounter.py @@ -27,7 +27,7 @@ class StorageCounter: def is_full(self)->bool: """Returns if the allocated disk space is full (this is Onionr config, not true FS capacity)""" ret_data = False - if config.get('allocations.disk', 2000000000) <= (self.get_amount() + 1000): + if config.get('allocations.disk', 1073741824) <= (self.get_amount() + 1000): ret_data = True return ret_data @@ -46,7 +46,7 @@ class StorageCounter: except ValueError: pass # Possibly happens when the file is empty return ret_data - + def get_percent(self)->int: """Return percent (decimal/float) of disk space we're using""" amount = self.get_amount() diff --git a/static-data/default_config.json b/static-data/default_config.json index f6625488..6840772e 100755 --- a/static-data/default_config.json +++ b/static-data/default_config.json @@ -3,7 +3,7 @@ "security_auditing": true }, "allocations": { - "disk": 100000000, + "disk": 1073741824, "net_total": 1000000000 }, "general": {