Skip to content

Commit 6b3e0bc

Browse files
authored
fix: fix disk size computation (#495)
1 parent 7f43a4a commit 6b3e0bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/source/vmware/vmware_sync.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ func (vc *VmwareSource) syncVM(
10671067
vmDiskSizeB += disk.CapacityInBytes
10681068
}
10691069
}
1070-
vmDiskSizeMiB := vmDiskSizeB / constants.MiB
1070+
vmDiskSizeMiB := vmDiskSizeB / constants.GiB * constants.KB
10711071

10721072
// Determine guest OS using fallback mechanisms
10731073
var platformName string

0 commit comments

Comments
 (0)