copr-backend*: copr-ping: work with rounded seconds
This commit is contained in:
parent
6e9d9a5bd9
commit
0613f46b41
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ logging.basicConfig(
|
|||
)
|
||||
|
||||
LOG = logging.getLogger()
|
||||
NOW = time.time()
|
||||
NOW = int(time.time())
|
||||
|
||||
|
||||
def _main():
|
||||
|
@ -64,7 +64,7 @@ def _main():
|
|||
start = int(values["start"])
|
||||
since_last_stop = NOW - stop
|
||||
measured_time = since_last_stop - CRON_PERIOD
|
||||
took = stop - start
|
||||
took = int(stop - start)
|
||||
|
||||
if measured_time > ERR_TIME:
|
||||
LOG.error("%s seconds since the last successful build, allowed %s seconds",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue