From 040b1c2f2b75c761fcb490fe97c40c747919f61b Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Tue, 10 Jul 2012 14:39:39 -0400 Subject: cc_resizefs: show more specific time. Show 3 decimal places for how long a resize took. 1 second granularity was too large. --- cloudinit/config/cc_resizefs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cloudinit/config') diff --git a/cloudinit/config/cc_resizefs.py b/cloudinit/config/cc_resizefs.py index 69cd8872..256a194f 100644 --- a/cloudinit/config/cc_resizefs.py +++ b/cloudinit/config/cc_resizefs.py @@ -134,7 +134,7 @@ def do_resize(resize_cmd, log): except util.ProcessExecutionError: util.logexc(log, "Failed to resize filesystem (cmd=%s)", resize_cmd) raise - tot_time = int(time.time() - start) - log.debug("Resizing took %s seconds", tot_time) + tot_time = time.time() - start + log.debug("Resizing took %.3f seconds", tot_time) # TODO: Should we add a fsck check after this to make # sure we didn't corrupt anything? -- cgit v1.2.3