diff options
author | Linus Nordberg <linus@nordu.net> | 2016-11-25 14:51:29 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2016-11-25 14:51:29 +0100 |
commit | ab0550f8f0c8f544b5878746ea963180551192d7 (patch) | |
tree | 3cbefca42fbbe769bd4d86471f6a37b9ae000e33 /tools/verifysct.py | |
parent | 616be2a18cea1ecfee327105a58f4f397a7e28f1 (diff) |
Do import datetime even more.
Diffstat (limited to 'tools/verifysct.py')
-rwxr-xr-x | tools/verifysct.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/verifysct.py b/tools/verifysct.py index 71ea4e9..10f1672 100755 --- a/tools/verifysct.py +++ b/tools/verifysct.py @@ -13,6 +13,7 @@ import struct import hashlib import itertools from certtools import * +from datetime import datetime import os import signal import select @@ -98,7 +99,7 @@ scts = (json.loads(row) for row in sctfile) nverified = 0 lastprinted = 0 -starttime = datetime.datetime.now() +starttime = datetime.now() try: for result, timing in p.imap_unordered(verifysct, scts): @@ -110,7 +111,7 @@ try: sys.exit(1) if result != None: nverified += 1 - deltatime = datetime.datetime.now() - starttime + deltatime = datetime.now() - starttime deltatime_f = deltatime.seconds + deltatime.microseconds / 1000000.0 rate = nverified / deltatime_f if nverified > lastprinted + 100: |