Re: [PATCH v2 2/2] virsh: report only filled values in 'nodecpustats'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  Ján Tomko wrote:

> Maybe creating an enum with VIR_ENUM_DECL/VIR_ENUM_IMPL would make the code
> easier to read? (You could use the FromString/ToString functions and an array
> of bools to tell missing/zero fields apart instead of NULL pointers)

I'll try to play around with that approach. Although, it doesn't seem
that it would be _much_ more readable, but maybe I'm wrong.

> Hmm, did libvirtd ever fill out the 'usage' field? I can't find it in git history.
> 

IIRC, Daniel said it's provided for the systems that could not report a
detailed CPU info when I was asking what would be a proper way to
implement CPU stats on FreeBSD.

Meanwhile, I've uploaded an updated patch which revolves your comments.

Thanks,

Roman Bogorodskiy

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]