Skip to content
This repository was archived by the owner on Oct 3, 2020. It is now read-only.

Commit 4f4fb8e

Browse files
authored
Update satprep_prepare_maintenance.py
Fixed a minor bug where prefix were based on ctime instead on mtime
1 parent 1485ba3 commit 4f4fb8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

satprep_prepare_maintenance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def readFile(file):
280280
global myPrefix
281281

282282
#set timestamp as prefix
283-
myPrefix = time.strftime("%Y%m%d", time.gmtime(os.path.getctime(args[1])))
283+
myPrefix = time.strftime("%Y%m%d", time.gmtime(os.path.getmtime(args[1])))
284284

285285
#read report header and get column index for hostname ,reboot and monitoring flag (if any)
286286
rFile = open(args[1], 'r')

0 commit comments

Comments
 (0)