aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/recipes/swarm_perf.py
diff options
context:
space:
mode:
Diffstat (limited to 'infra/bots/recipes/swarm_perf.py')
-rw-r--r--infra/bots/recipes/swarm_perf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/infra/bots/recipes/swarm_perf.py b/infra/bots/recipes/swarm_perf.py
index fb8838c047..56a067015b 100644
--- a/infra/bots/recipes/swarm_perf.py
+++ b/infra/bots/recipes/swarm_perf.py
@@ -44,7 +44,7 @@ TEST_BUILDERS = {
}
-import time
+import calendar
def nanobench_flags(bot):
@@ -206,7 +206,7 @@ def perf_steps(api):
if api.vars.upload_perf_results:
now = api.time.utcnow()
- ts = int(time.mktime(now.utctimetuple()))
+ ts = int(calendar.timegm(now.utctimetuple()))
json_path = api.flavor.device_path_join(
api.flavor.device_dirs.perf_data_dir,
'nanobench_%s_%d.json' % (api.vars.got_revision, ts))