]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/endtime
baculum: Fix oauth2 client working in the web part
[bacula/bacula] / regress / endtime
index 8a218b67fce690d95e3d87259abca514473da2da..66fd57bcb00c69c66c625ef19a717e484d0d0d9e 100755 (executable)
@@ -1,8 +1,16 @@
-#!/usr/bin/python
+#!/usr/bin/env python
+#
+# Copyright (C) 2000-2015 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
 from time import time as now 
  
 t = now()
 fn = open('time.out', 'r')
 s = fn.readline()     
 fn.close()
-print 'Total time: %d secs' % (t - float(s))
+diff = t - float(s)
+h = int(diff / 3600)
+m = int((diff - h * 3600) / 60)
+sec = diff - h * 3600 - m * 60
+print 'Total time = %d:%02d:%02d or %d secs' % (h, m, sec, t - float(s))