]> xenbits.xensource.com Git - libvirt.git/commit
virsh: Rework parseRateStr
authorMichal Privoznik <mprivozn@redhat.com>
Sat, 1 Aug 2015 06:13:54 +0000 (08:13 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 11 Aug 2015 14:10:32 +0000 (16:10 +0200)
commit6983d6d2c34499bf2d673d7c9359e7838684ee7f
treed059d7986a8d4432df8d6e23de53bd9acc5ccdb1
parent5ee6d243fc5f2ba840ba43e4c9bd85cb5cb745a0
virsh: Rework parseRateStr

The function is used to parse a tuple delimited by commas into
virNetDevBandwidth structure. So far only three out of fore
fields are supported: average, peak and burst. The single missing
field is floor. Well, the parsing works, but I think we can do
better. Especially when we will need to parse floor too in very
close future.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh-domain.c