xenpm: Fix typo bug.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 9 Oct 2008 09:16:49 +0000 (10:16 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 9 Oct 2008 09:16:49 +0000 (10:16 +0100)
From: Guanqun Lu <guanqun.lu@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/misc/xenpm.c

index b705f0a6faed17f46c954633839e96710530823f..fbe72b247e118e81596a4000456892974422e21b 100644 (file)
@@ -161,7 +161,7 @@ int main(int argc, char **argv)
                 break;
             }
 
-            ret = xc_pm_get_pxstat(xc_fd, 0, pxstat);
+            ret = xc_pm_get_pxstat(xc_fd, i, pxstat);
             if( ret ) {
                 fprintf(stderr, "failed to get P-states statistics information\n");
                 free(pxstat->trans_pt);