diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-03-08 13:57:48 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-03-08 13:57:48 +0100 |
| commit | 073c25d666926ae806b5de9b645bd67538d7cf65 (patch) | |
| tree | 3a9b5211b26b4311d7b817e91b3e6b09f46c5f15 | |
| parent | 88bed261c2a21d88e06490092dc3f88745a3a545 (diff) | |
| download | allocbench-073c25d666926ae806b5de9b645bd67538d7cf65.tar.gz allocbench-073c25d666926ae806b5de9b645bd67538d7cf65.zip | |
don't use isoformat(timespec=) for python3 < 3.6
| -rwxr-xr-x | bench.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |
