Commit 09010c5d authored by Matt Traudt's avatar Matt Traudt
Browse files

Make linter happy, replace time_now with time.time

parent 735ef19d
from sbws import version
from sbws.globals import (fail_hard, is_initted)
from sbws.lib.v3bwfile import V3BwHeader
from sbws.lib.resultdump import ResultSuccess
......@@ -7,7 +6,6 @@ from sbws.lib.resultdump import group_results_by_relay
from argparse import ArgumentDefaultsHelpFormatter
from statistics import median
import os
import time
import logging
log = logging.getLogger(__name__)
......
......@@ -2,9 +2,10 @@
"""Classes and functions that create the bandwidth measurements document
(v3bw) used by bandwidth authorities."""
import time
import logging
from sbws import version
from sbws.globals import time_now, SPEC_VERSION
from sbws.globals import SPEC_VERSION
log = logging.getLogger(__name__)
......@@ -22,7 +23,7 @@ class V3BwHeader(object):
"""
def __init__(self, timestamp=None, version=SPEC_VERSION, software='sbws',
software_version=version):
self.timestamp = timestamp or int(time_now())
self.timestamp = timestamp or int(time.time())
self.version = version
self.software = software
self.software_version = software_version
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment