VMware Communities > Developer Community > VI Toolkit (For Windows) > Discussions
0 Replies Last post: Apr 25, 2008 5:27 PM by halr9000
Reply

Inconsistent usage of disk sizes

Apr 25, 2008 5:27 PM

Click to view halr9000's profile Expert halr9000 581 posts since
Jun 7, 2007
@vmware: I think you guys should express storage size as BYTES everywhere. Especially since PowerShell has the cool KB/MB/GB constants. If I want GB from bytes, I just go "$size / 1GB". Now I have to worry about whether something is in KB or bytes, guessing by the property name. And the math is slightly more verbose "$size * 1kb / 1gb". Just an annoyance I'd rather not have to deal with.

> $vm | Get-HardDisk

CapacityKB Persistence
---------- -----------
15728640   Persistent  ..

($vm | Get-VMGuest).Disks
Path Capacity ---- -------- C:\ 10725732352


Hal Rottenberg
Co-Host, PowerScripting Podcast (http://powerscripting.net)
Actions