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

[Xen-changelog] Simple fix to getdomaininfo cpu_time calculation for



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 0229efe8ffe435c9559366b246e3c0127c181757
# Parent  08bc755fe7961c4d7b2d9ee29b4909eab3868aa1
Simple fix to getdomaininfo cpu_time calculation for
multi-vcpu guests. From Josh Triplett.

diff -r 08bc755fe796 -r 0229efe8ffe4 xen/common/dom0_ops.c
--- a/xen/common/dom0_ops.c     Mon Aug  8 17:00:21 2005
+++ b/xen/common/dom0_ops.c     Mon Aug  8 18:43:57 2005
@@ -70,8 +70,7 @@
             flags &= ~DOMFLAGS_BLOCKED;
         if ( v->vcpu_flags & VCPUF_running )
             flags |= DOMFLAGS_RUNNING;
-        if ( v->cpu_time > cpu_time )
-            cpu_time += v->cpu_time;
+        cpu_time += v->cpu_time;
         vcpu_count++;
     }
     

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


 


Rackspace

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