Skip to contentSkip to conversation

xmlrpc: floating point cpu_time value always rounded to nearest integer

DISCUSSION Sandro Sigala 1 participant 1 message Feb 8, 2009

lore
Share & tools
lore
#0 lore raw

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

Signature · 2 lines
www.roxantis.com - [email protected]
Phone: (+39) 347 444 3326 - Fax: (+39) 030 553 1263

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel