All of lore.kernel.org
 help / color / mirror / Atom feed
* xmlrpc: floating point cpu_time value always rounded to nearest integer
@ 2009-02-08 10:16 Sandro Sigala
  0 siblings, 0 replies; only message in thread
From: Sandro Sigala @ 2009-02-08 10:16 UTC (permalink / raw)
  To: xen-devel; +Cc: Emilio Bruna

[-- Attachment #1: Type: text/plain, Size: 1211 bytes --]

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@roxantis.com
Phone: (+39) 347 444 3326 - Fax: (+39) 030 553 1263

[-- Attachment #2: rpcdebug.zip --]
[-- Type: application/x-zip-compressed, Size: 17454 bytes --]

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-08 10:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-08 10:16 xmlrpc: floating point cpu_time value always rounded to nearest integer Sandro Sigala

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.