From bd4a18ac265576fd0986cc09463935a35751fa1e Mon Sep 17 00:00:00 2001 From: HappyZ Date: Thu, 1 Feb 2018 11:03:08 -0600 Subject: [PATCH] add time of exec in file path to distinguish between multiple rounds --- libMeasurement.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libMeasurement.py b/libMeasurement.py index 01f7d50..0966790 100755 --- a/libMeasurement.py +++ b/libMeasurement.py @@ -206,6 +206,11 @@ def main(): except Exception as e: print(str(e)) sys.exit() + args['time_of_exec'] = int(time.time()) + # rename file path by adding time of exec + if args['filepath']: + fp, ext = os.path.splitext(args['filepath']) + args['filepath'] = "{0}_{1}{2}".format(fp, args['time_of_exec'], ext) wrapper(args)