[tor-commits] [sbws/master] Update the total
pastly at torproject.org
pastly at torproject.org
Wed Sep 5 19:44:55 UTC 2018
commit a602a54e12f200566751e417ed6614a8900aead2
Author: juga0 <juga at riseup.net>
Date: Fri Aug 3 12:53:39 2018 +0000
Update the total
and add comment about MiB
---
sbws/util/fs.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sbws/util/fs.py b/sbws/util/fs.py
index 111e109..5b48f3b 100644
--- a/sbws/util/fs.py
+++ b/sbws/util/fs.py
@@ -31,7 +31,9 @@ def sbws_required_disk_space(conf):
# roughly, size of a current tor dir
space_tor_dir = 19828000
# duplicate everything to warn early
- size_total = (space_v3bw_files + size_log_file + space_result_files) * 2
+ size_total = (space_v3bw_files + size_log_file + space_result_files +
+ space_tor_dir) * 2
+ # convert to MiB
size_total_mb = round(size_total / (1024 ** 2))
return size_total_mb
More information about the tor-commits
mailing list