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

Re: [libvirt] [PATCH 1/2] add parameter flags to D.get_cpu_stats()



On Thu, Apr 26, 2012 at 04:09:05PM +0800, Hu Tao wrote:
> ---
>  examples/get_cpu_stats.ml   |    2 +-
>  libvirt/libvirt.ml          |    2 +-
>  libvirt/libvirt.mli         |    2 +-
>  libvirt/libvirt_c_oneoffs.c |    9 +++++----
>  4 files changed, 8 insertions(+), 7 deletions(-)
> 
> diff --git a/examples/get_cpu_stats.ml b/examples/get_cpu_stats.ml
> index 79d5c3c..3541720 100644
> --- a/examples/get_cpu_stats.ml
> +++ b/examples/get_cpu_stats.ml
> @@ -25,7 +25,7 @@ let () =
>  
>      let stats =
>        let dom = D.lookup_by_name conn domname in
> -      D.get_cpu_stats dom nr_pcpus in
> +      D.get_cpu_stats dom nr_pcpus 0 in

This needs to be a list of (the OCaml equivalent of)
virTypedParameterFlags.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora


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