[Pkg-libvirt-commits] [libguestfs] 04/12: v2v: Fix variable name usage_mb -> usage_gb.

Hilko Bengen bengen at moszumanska.debian.org
Fri Oct 3 14:45:28 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag debian/1%1.27.45-1
in repository libguestfs.

commit 3e2f89a74fcc75a0f6b10945d2d4b0273cc21b03
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Sat Sep 13 16:44:17 2014 +0100

    v2v: Fix variable name usage_mb -> usage_gb.
    
    It's actually storing usage in gigabytes, not megabytes.
---
 v2v/lib_ovf.ml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/v2v/lib_ovf.ml b/v2v/lib_ovf.ml
index 5203d86..5a56af4 100644
--- a/v2v/lib_ovf.ml
+++ b/v2v/lib_ovf.ml
@@ -336,8 +336,8 @@ and add_disks targets guestcaps output_alloc sd_uuid image_uuid vol_uuids ovf =
         if Sys.file_exists t.target_file then (
           let usage_mb = du_m t.target_file in
           if usage_mb > 0L then (
-            let usage_mb = Int64.to_float usage_mb /. 1024. in
-            Some usage_mb
+            let usage_gb = Int64.to_float usage_mb /. 1024. in
+            Some usage_gb
           ) else None
         ) else None in
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list