bumped disk allocation to 1gb
parent
b2f4dae226
commit
022fbaa1af
|
@ -27,7 +27,7 @@ class StorageCounter:
|
||||||
def is_full(self)->bool:
|
def is_full(self)->bool:
|
||||||
"""Returns if the allocated disk space is full (this is Onionr config, not true FS capacity)"""
|
"""Returns if the allocated disk space is full (this is Onionr config, not true FS capacity)"""
|
||||||
ret_data = False
|
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
|
ret_data = True
|
||||||
return ret_data
|
return ret_data
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ class StorageCounter:
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass # Possibly happens when the file is empty
|
pass # Possibly happens when the file is empty
|
||||||
return ret_data
|
return ret_data
|
||||||
|
|
||||||
def get_percent(self)->int:
|
def get_percent(self)->int:
|
||||||
"""Return percent (decimal/float) of disk space we're using"""
|
"""Return percent (decimal/float) of disk space we're using"""
|
||||||
amount = self.get_amount()
|
amount = self.get_amount()
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"security_auditing": true
|
"security_auditing": true
|
||||||
},
|
},
|
||||||
"allocations": {
|
"allocations": {
|
||||||
"disk": 100000000,
|
"disk": 1073741824,
|
||||||
"net_total": 1000000000
|
"net_total": 1000000000
|
||||||
},
|
},
|
||||||
"general": {
|
"general": {
|
||||||
|
|
Loading…
Reference in New Issue