[tor-commits] [depictor] branch master updated: Round clockskew.

gitolite role git at cupani.torproject.org
Wed Dec 7 17:06:08 UTC 2022


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 66d32a2  Round clockskew.
66d32a2 is described below

commit 66d32a2b68be4ea1250c58a2dc2a7768e85e7438
Author: Tom Ritter <tom at ritter.vg>
AuthorDate: Wed Dec 7 11:58:15 2022 -0500

    Round clockskew.
---
 utility.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utility.py b/utility.py
index 4395234..4e2f2de 100755
--- a/utility.py
+++ b/utility.py
@@ -132,7 +132,7 @@ def get_clockskew():
 			if processing > 5:
 				clockskew[nickname] -= datetime.timedelta(seconds=(processing / 2))
 			clockskew[nickname] -= startTimeStamp
-			clockskew[nickname] = clockskew[nickname].total_seconds()
+			clockskew[nickname] = round(clockskew[nickname].total_seconds(), 2)
 		except Exception as e:
 			print("Clockskew Exception:", e)
 			continue

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tor-commits mailing list