aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-03-08 13:57:48 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-03-08 13:57:48 +0100
commit073c25d666926ae806b5de9b645bd67538d7cf65 (patch)
tree3a9b5211b26b4311d7b817e91b3e6b09f46c5f15
parent88bed261c2a21d88e06490092dc3f88745a3a545 (diff)
downloadallocbench-073c25d666926ae806b5de9b645bd67538d7cf65.tar.gz
allocbench-073c25d666926ae806b5de9b645bd67538d7cf65.zip
don't use isoformat(timespec=) for python3 < 3.6
-rwxr-xr-xbench.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bench.py b/bench.py
index 3f183cc..fe16160 100755
--- a/bench.py
+++ b/bench.py
@@ -106,7 +106,10 @@ def main():
else:
src.globalvars.facts = old_facts
else:
- src.globalvars.facts["starttime"] = datetime.datetime.now().isoformat(timespec="minutes")
+ start_time = datetime.datetime.now().isoformat()
+ # strip seconds from string
+ start_time = start_time[:start_time.rfind(':')]
+ src.globalvars.facts["starttime"] = start_time
# Create result directory if we save or summarize results
need_resultdir = not (args.nosum and args.dont_save)