WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] xmlrpc: floating point cpu_time value always rounded to nearest integer
From: Sandro Sigala <sandro@xxxxxxxxxxxx>
Date: Sun, 08 Feb 2009 11:16:50 +0100
Cc: Emilio Bruna <emilio.bruna@xxxxxxxxxx>
Delivery-date: Sun, 08 Feb 2009 02:18:27 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] xmlrpc: floating point cpu_time value always rounded to nearest integer, Sandro Sigala <=