From 7eb7d806c0a9c52c59c322549ce212cbae1d2491 Mon Sep 17 00:00:00 2001
From: "David Adam (zanchey)" <zanchey@ucc.gu.uwa.edu.au>
Date: Mon, 9 Jan 2012 13:00:10 +0800
Subject: [PATCH] fix output times

---
 rdiff-manager.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/rdiff-manager.py b/rdiff-manager.py
index 1b8fce3..478183d 100755
--- a/rdiff-manager.py
+++ b/rdiff-manager.py
@@ -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
-- 
GitLab