[tor-commits] [depictor] branch master updated: Allow consensus increments of 30 minutes or 1 hour.
gitolite role
git at cupani.torproject.org
Fri Feb 3 15:39:49 UTC 2023
This is an automated email from the git hooks/post-receive script.
tom pushed a commit to branch master
in repository depictor.
The following commit(s) were added to refs/heads/master by this push:
new 9f32b66 Allow consensus increments of 30 minutes or 1 hour.
9f32b66 is described below
commit 9f32b66d6f875522efddd382a075495fad54bb69
Author: Tom Ritter <tom at ritter.vg>
AuthorDate: Fri Feb 3 10:39:30 2023 -0500
Allow consensus increments of 30 minutes or 1 hour.
This will get rid of tons of 'We seem to be missing...' messages that needlessly update the sqlite database.
This _might_ also be the source of missing data, as it might have overwritten valid rows with potentially(?) empty ones
---
write_website.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/write_website.py b/write_website.py
index b496796..a4730f6 100755
--- a/write_website.py
+++ b/write_website.py
@@ -96,8 +96,9 @@ def main():
if previous == 0:
pass
else:
- expected = ut_to_datetime(previous) + datetime.timedelta(hours=1)
- if expected == ut_to_datetime(d):
+ expected_0 = ut_to_datetime(previous) + datetime.timedelta(hours=1)
+ expected_1 = ut_to_datetime(previous) + datetime.timedelta(minutes=30)
+ if ut_to_datetime(d) in [expected_0, expected_1]:
pass
else:
print("We seem to be missing", consensus_datetime_format(expected))
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the tor-commits
mailing list