From 9f2514c5b93a6570c546de8330126b44e0ccb229 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sun, 25 Aug 2013 19:29:23 +0000 Subject: [PATCH] Minor output tweak to vhost-info script --- scripts/vhost-info | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/vhost-info b/scripts/vhost-info index b350f27df8..eabf2d0749 100755 --- a/scripts/vhost-info +++ b/scripts/vhost-info @@ -111,8 +111,8 @@ for hn in sorted(res['contacted']): for hn in sorted(mem_per_host): freemem = mem_per_host[hn] - mem_used_in_vm[hn] freecpu = cpu_per_host[hn] - cpu_used_in_vm[hn] - print '%s:\t%s mem\t%s/%s cpus' % ( - hn, freemem, freecpu, cpu_per_host[hn]) + print '%s:\t%s/%s mem(unused/total)\t%s/%s cpus(unused/total)' % ( + hn, freemem, mem_per_host[hn], freecpu, cpu_per_host[hn]) for err in errors: