summaryrefslogtreecommitdiff
path: root/tools/submitcert.py
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2016-11-25 14:51:29 +0100
committerLinus Nordberg <linus@nordu.net>2016-11-25 14:51:29 +0100
commitab0550f8f0c8f544b5878746ea963180551192d7 (patch)
tree3cbefca42fbbe769bd4d86471f6a37b9ae000e33 /tools/submitcert.py
parent616be2a18cea1ecfee327105a58f4f397a7e28f1 (diff)
Do import datetime even more.
Diffstat (limited to 'tools/submitcert.py')
-rwxr-xr-xtools/submitcert.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/submitcert.py b/tools/submitcert.py
index c443cf4..3b10df5 100755
--- a/tools/submitcert.py
+++ b/tools/submitcert.py
@@ -14,6 +14,7 @@ import hashlib
import itertools
from certtools import *
from precerttools import *
+from datetime import datetime
import os
import signal
import select
@@ -195,7 +196,7 @@ else:
if args.pre_warm:
select.select([], [], [], 3.0)
-starttime = datetime.datetime.now()
+starttime = datetime.now()
try:
for result, timing in p.imap_unordered(submitcert, certs):
@@ -211,7 +212,7 @@ try:
save_sct(sct, sth, leafcert, issuer_key_hash)
else:
errors += 1
- deltatime = datetime.datetime.now() - starttime
+ deltatime = datetime.now() - starttime
deltatime_f = deltatime.seconds + deltatime.microseconds / 1000000.0
rate = nsubmitted / deltatime_f
if nsubmitted > lastprinted + ncerts / 10: