Re: [libvirt] [PATCHv2 03/15] util: new function for scaling numbers

2012-03-06 Thread Peter Krempa
On 03/06/2012 01:34 AM, Eric Blake wrote: Scaling an integer based on a suffix is something we plan on reusing in several contexts: XML parsing, virsh CLI parsing, and possibly elsewhere. Make it easy to reuse, as well as adding in support for powers of 1000. * src/util/util.h (virScaleInteger)

[libvirt] [PATCHv2 03/15] util: new function for scaling numbers

2012-03-05 Thread Eric Blake
Scaling an integer based on a suffix is something we plan on reusing in several contexts: XML parsing, virsh CLI parsing, and possibly elsewhere. Make it easy to reuse, as well as adding in support for powers of 1000. * src/util/util.h (virScaleInteger): New function. * src/util/util.c (virScaleI