summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_resizefs.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-07-10 14:39:39 -0400
committerScott Moser <smoser@ubuntu.com>2012-07-10 14:39:39 -0400
commit040b1c2f2b75c761fcb490fe97c40c747919f61b (patch)
treedd4ab3bc1c2e4995a8a804e9dba98325e4ce2bd1 /cloudinit/config/cc_resizefs.py
parentfa644f5edf9732ad3e4ca03531d78314518d76f7 (diff)
downloadvyos-cloud-init-040b1c2f2b75c761fcb490fe97c40c747919f61b.tar.gz
vyos-cloud-init-040b1c2f2b75c761fcb490fe97c40c747919f61b.zip
cc_resizefs: show more specific time.
Show 3 decimal places for how long a resize took. 1 second granularity was too large.
Diffstat (limited to 'cloudinit/config/cc_resizefs.py')
-rw-r--r--cloudinit/config/cc_resizefs.py4
1 files changed, 2 insertions, 2 deletions
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?