mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-02 06:20:26 +08:00
copr-backend*: copr-ping: work with rounded seconds
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user