Skip to content

Commit bcb4bd8

Browse files
code optimize
Signed-off-by: Prudhvi Godithi <pgodithi@amazon.com>
1 parent f851bb3 commit bcb4bd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/python/benchUtil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ def makeIndex(self, id, index, printCharts=False, profilerCount=30, profilerStac
949949

950950
# Create timestamped log subdirectory to avoid conflicts between runs
951951
now = datetime.datetime.now()
952-
timeStamp = "%04d.%02d.%02d.%02d.%02d.%02d" % (now.year, now.month, now.day, now.hour, now.minute, now.second)
952+
timeStamp = now.strftime("%Y.%m.%d.%H.%M.%S")
953953
runLogDir = f"{constants.LOGS_DIR}/{id}/{timeStamp}"
954954
os.makedirs(runLogDir, exist_ok=True)
955955
print(f" log dir {runLogDir}")

0 commit comments

Comments
 (0)