Skip to content
Snippets Groups Projects
Commit 7eb7d806 authored by David Adam's avatar David Adam
Browse files

fix output times

parent 071d98cd
No related merge requests found
...@@ -10,6 +10,7 @@ concurrent_num = 0 ...@@ -10,6 +10,7 @@ concurrent_num = 0
duration_to_keep = '4W' duration_to_keep = '4W'
from multiprocessing import Pool from multiprocessing import Pool
import time
from time import strftime from time import strftime
import subprocess, os, glob import subprocess, os, glob
...@@ -66,6 +67,9 @@ def rdiff_backup(config): ...@@ -66,6 +67,9 @@ def rdiff_backup(config):
return target.run_all() return target.run_all()
if __name__ == '__main__': if __name__ == '__main__':
starttime = time.localtime()
config_files = glob.iglob(configs_path + '/*.conf') config_files = glob.iglob(configs_path + '/*.conf')
filenames = (os.path.basename(x) for x in config_files) filenames = (os.path.basename(x) for x in config_files)
hostnames = (x.replace('.conf', '') for x in filenames) hostnames = (x.replace('.conf', '') for x in filenames)
...@@ -92,7 +96,7 @@ if __name__ == '__main__': ...@@ -92,7 +96,7 @@ if __name__ == '__main__':
divider = '-' * 76 divider = '-' * 76
# Header # Header
print(divider) print(divider)
print('RDIFF-MANAGER REPORT for run started', strftime('%c')) print('RDIFF-MANAGER REPORT for run started', strftime('%c', starttime))
print(divider) print(divider)
# Summary # Summary
......
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