Re: [libvirt] [PATCH 1/4] virsh: common code for parsing --seconds

2014-02-20 Thread Daniel P. Berrange
On Fri, Feb 14, 2014 at 05:21:38PM -0700, Eric Blake wrote: Several virsh commands ask for a --timeout parameter in seconds, then use it to control interfaces that operate on millisecond limits; I also plan on adding a 'virsh event' command that also does this. Factor this into a common

[libvirt] [PATCH 1/4] virsh: common code for parsing --seconds

2014-02-14 Thread Eric Blake
Several virsh commands ask for a --timeout parameter in seconds, then use it to control interfaces that operate on millisecond limits; I also plan on adding a 'virsh event' command that also does this. Factor this into a common function. * tools/virsh.h (vshCommandOptTimeoutToMs): New prototype.