[tor-commits] [sbws/maint-1.1] fix: timestamp: Old timestamps are minor than older
juga at torproject.org
juga at torproject.org
Mon Mar 9 18:00:44 UTC 2020
commit d7b5d3deef1c303461f623d32eaf76782f2910eb
Author: juga0 <juga at riseup.net>
Date: Tue Mar 3 18:33:47 2020 +0000
fix: timestamp: Old timestamps are minor than older
Old timestamps are minor than the older date, not major.
---
sbws/util/timestamp.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbws/util/timestamp.py b/sbws/util/timestamp.py
index 4c3fb34..ee0755a 100644
--- a/sbws/util/timestamp.py
+++ b/sbws/util/timestamp.py
@@ -91,4 +91,4 @@ def is_old(timestamp, measurements_period=MEASUREMENTS_PERIOD):
# is not actually a timestamp
timestamp = unixts_to_dt_obj(timestamp)
oldest_date = datetime.utcnow() - timedelta(measurements_period)
- return timestamp > oldest_date
+ return timestamp < oldest_date
More information about the tor-commits
mailing list