-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use go-units for disk size/memory size #1642
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@cfergeau : I'm trying this on CRC v2.45.0 . I'm observing that we're showing disk size memory size not in unitless numbers: ~ : $ crc status
CRC VM: Running
OpenShift: Running (v4.17.7)
RAM Usage: 20.06GB of 32.68GB
Disk Usage: 1.713GB of 10.95GB (Inside the CRC VM)
Cache Usage: 25.71GB
Cache Directory: /home/rohan/.crc/cache |
This is about how the units are passed around in the code, for example |
…size (crc-org#1642) Currently we're using memory values in `uint64` variable. This works but sometimes it can be confusing to figure out what unit we're using if variable is not named correctly. Instead, we can rely on strongunits types for byte/MegaByte and GigaByte for these values. Signed-off-by: Rohan Kumar <[email protected]>
…size (crc-org#1642) Currently we're using memory values in `uint64` variable. This works but sometimes it can be confusing to figure out what unit we're using if variable is not named correctly. Instead, we can rely on strongunits types for byte/MegaByte and GigaByte for these values. Signed-off-by: Rohan Kumar <[email protected]>
…size (crc-org#1642) Currently we're using memory values in `uint64` variable. This works but sometimes it can be confusing to figure out what unit we're using if variable is not named correctly. Instead, we can rely on strongunits types for byte/MegaByte and GigaByte for these values. Signed-off-by: Rohan Kumar <[email protected]>
…size (crc-org#1642) Currently we're using memory values in `uint64` variable. This works but sometimes it can be confusing to figure out what unit we're using if variable is not named correctly. Instead, we can rely on strongunits types for byte/MegaByte and GigaByte for these values. Signed-off-by: Rohan Kumar <[email protected]>
…size (crc-org#1642) Currently we're using memory values in `uint64` variable. This works but sometimes it can be confusing to figure out what unit we're using if variable is not named correctly. Instead, we can rely on strongunits types for byte/MegaByte and GigaByte for these values. Signed-off-by: Rohan Kumar <[email protected]>
…size (crc-org#1642) Currently we're using memory values in `uint64` variable. This works but sometimes it can be confusing to figure out what unit we're using if variable is not named correctly. Instead, we can rely on strongunits types for byte,MegaByte and GigaByte for these values. Signed-off-by: Rohan Kumar <[email protected]>
…size (crc-org#1642) Currently we're using memory values in `uint64` variable. This works but sometimes it can be confusing to figure out what unit we're using if variable is not named correctly. Instead, we can rely on strongunits types for byte,MegaByte and GigaByte for these values. Signed-off-by: Rohan Kumar <[email protected]>
…size (crc-org#1642) Currently we're using memory values in `uint64` variable. This works but sometimes it can be confusing to figure out what unit we're using if variable is not named correctly. Instead, we can rely on strongunits types for byte,MegaByte and GigaByte for these values. Signed-off-by: Rohan Kumar <[email protected]>
…size (crc-org#1642) Currently we're using memory values in `uint64` variable. This works but sometimes it can be confusing to figure out what unit we're using if variable is not named correctly. Instead, we can rely on strongunits types for byte,MegaByte and GigaByte for these values. Signed-off-by: Rohan Kumar <[email protected]>
…size (crc-org#1642) Currently we're using memory values in `uint64` variable. This works but sometimes it can be confusing to figure out what unit we're using if variable is not named correctly. Instead, we can rely on strongunits types for byte,MegaByte and GigaByte for these values. Signed-off-by: Rohan Kumar <[email protected]>
At the moment disk sizes/memory sizes are passed as unitless numbers, one has to know disk size uses GiB and memory size uses MiB (or look at
crc start --help
. We should be adding support for https://github.com/docker/go-units to the option parsing code so that the unit can be specified to make this more user friendly.The text was updated successfully, but these errors were encountered: