Skip to content

Commit

Permalink
fix: fix disk size computation
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Feb 24, 2025
1 parent 7f43a4a commit 4967ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/source/vmware/vmware_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ func (vc *VmwareSource) syncVM(
vmDiskSizeB += disk.CapacityInBytes
}
}
vmDiskSizeMiB := vmDiskSizeB / constants.MiB
vmDiskSizeMiB := vmDiskSizeB / constants.GiB * 1000

Check failure on line 1070 in internal/source/vmware/vmware_sync.go

View workflow job for this annotation

GitHub Actions / Run tests and upload results (1.22)

Magic number: 1000, in <operation> detected (mnd)

Check failure on line 1070 in internal/source/vmware/vmware_sync.go

View workflow job for this annotation

GitHub Actions / Run tests and upload results (1.23)

Magic number: 1000, in <operation> detected (mnd)

// Determine guest OS using fallback mechanisms
var platformName string
Expand Down

0 comments on commit 4967ea9

Please sign in to comment.