[tor-commits] [sbws/master] resuldump: inform when previous results are loaded
juga at torproject.org
juga at torproject.org
Fri Dec 21 09:13:44 UTC 2018
commit 294581ec101ee3d0d0e83c67abeec55d5f83e88c
Author: juga0 <juga at riseup.net>
Date: Sun Dec 9 09:44:47 2018 +0000
resuldump: inform when previous results are loaded
since it takes some seconds and the operator would not see any
progress at the beginning, until relays start to be measured.
---
sbws/lib/resultdump.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sbws/lib/resultdump.py b/sbws/lib/resultdump.py
index 3dce6fa..52a0b7c 100644
--- a/sbws/lib/resultdump.py
+++ b/sbws/lib/resultdump.py
@@ -133,6 +133,8 @@ def load_recent_results_in_datadir(fresh_days, datadir, success_only=False,
Results as a list '''
assert isinstance(fresh_days, int)
assert os.path.isdir(datadir)
+ # Inform the results are being loaded, since it takes some seconds.
+ log.info("Reading and processing previous measurements.")
results = {}
today = datetime.utcfromtimestamp(time.time())
data_period = fresh_days + 2
More information about the tor-commits
mailing list