[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sbws/master] Update the total
commit a602a54e12f200566751e417ed6614a8900aead2
Author: juga0 <juga@xxxxxxxxxx>
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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits