Commit 7eb7d806 authored by David Adam's avatar David Adam

fix output times

parent 071d98cd
......@@ -10,6 +10,7 @@ concurrent_num = 0
duration_to_keep = '4W'
from multiprocessing import Pool
import time
from time import strftime
import subprocess, os, glob
......@@ -66,6 +67,9 @@ def rdiff_backup(config):
return target.run_all()
if __name__ == '__main__':
starttime = time.localtime()
config_files = glob.iglob(configs_path + '/*.conf')
filenames = (os.path.basename(x) for x in config_files)
hostnames = (x.replace('.conf', '') for x in filenames)
......@@ -92,7 +96,7 @@ if __name__ == '__main__':
divider = '-' * 76
# Header
print(divider)
print('RDIFF-MANAGER REPORT for run started', strftime('%c'))
print('RDIFF-MANAGER REPORT for run started', strftime('%c', starttime))
print(divider)
# Summary
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment