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

[Xen-devel] xmlrpc: floating point cpu_time value always rounded to nearest integer



Hello,

I wrote a program that fetches the status of the Xen domains though the Xen
XMLRPC API (port 8006), with

        (xend-tcp-xmlrpc-server yes)

enabled in /etc/xen/xend-config.sxp.

For the domains I'm getting results like:

    ...
    <value>
        <array>
            <data>
                <value>cpu_time</value>
                <value>
                    <double>17,000000</double>
                </value>
            </data>
        </array>
    </value>
    ...

then (after some running time):

    ...
    <value>
        <array>
            <data>
                <value>cpu_time</value>
                <value>
                    <double>18,000000</double>
                </value>
            </data>
        </array>
    </value>
    ...

Do you know any reasons why the values are rounded to the next integer?

The system I'm using is:

(XEN) Xen version 3.2.1-rc1-pre (buildd@buildd) (gcc version 4.2.3 (Ubuntu
4.2.3-2ubuntu7)) Fri Apr 11 01:13:51 UTC 2008

And I'm using the XMLRPC++ library for accessing the data.

Attached is the full log of the XMLRPC output.

Thanks in advance,
Sandro


-- 
www.roxantis.com - sandro@xxxxxxxxxxxx
Phone: (+39) 347 444 3326 - Fax: (+39) 030 553 1263

Attachment: rpcdebug.zip
Description: Zip compressed data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.