VMware Cloud Community
halr9000
Commander
Commander

Inconsistent usage of disk sizes

@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)

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
Tags (2)
0 Kudos
0 Replies