diff options
| author | Seth Vidal <skvidal@fedoraproject.org> | 2013-07-04 15:46:08 -0400 |
|---|---|---|
| committer | Seth Vidal <skvidal@fedoraproject.org> | 2013-07-04 15:46:08 -0400 |
| commit | 88caed356a960bc10623306fdd5b2e6c94590dbb (patch) | |
| tree | c4794b72b8da96adaec34708c98d46f5be672a2e /scripts | |
| parent | 0033b3dc8fb44509fe7a1a811b63db50cbd33aed (diff) | |
| download | ansible-88caed356a960bc10623306fdd5b2e6c94590dbb.tar.gz ansible-88caed356a960bc10623306fdd5b2e6c94590dbb.tar.xz ansible-88caed356a960bc10623306fdd5b2e6c94590dbb.zip | |
nicer to look at duration
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/logview | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/logview b/scripts/logview index d7fef37de..02a9b592e 100755 --- a/scripts/logview +++ b/scripts/logview @@ -69,7 +69,7 @@ def search_logs(opts, logfiles): st = slurp.get('task_start', 0) end = slurp.get('task_end', 0) if st and end: - dur = str(float(end) - float(st)) + dur = '%.2f' % (float(end) - float(st)) else: dur = "Unknown" msg += ' Duration: %s sec\n' % dur |
