diff options
author | cl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk> | 2005-08-26 08:50:02 +0000 |
---|---|---|
committer | cl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk> | 2005-08-26 08:50:02 +0000 |
commit | d6ff39d0aefbdf62f1b57c936bd600e6d684deba (patch) | |
tree | 1a4d18adedf4f7f3857b7d42e6a6b9ebd9cc4c36 /tools/xenstat/xentop | |
parent | 42778d65c7be2a4174ca5c2b27c92aa468c27127 (diff) | |
download | xen-d6ff39d0aefbdf62f1b57c936bd600e6d684deba.tar.gz xen-d6ff39d0aefbdf62f1b57c936bd600e6d684deba.tar.bz2 xen-d6ff39d0aefbdf62f1b57c936bd600e6d684deba.zip |
Changed xentop.c to include version in the summary.
Signed-off-by: Judy Fischbach <jfisch@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
Diffstat (limited to 'tools/xenstat/xentop')
-rw-r--r-- | tools/xenstat/xentop/xentop.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/xenstat/xentop/xentop.c b/tools/xenstat/xentop/xentop.c index 2a30cd4eb8..c43891cc71 100644 --- a/tools/xenstat/xentop/xentop.c +++ b/tools/xenstat/xentop/xentop.c @@ -593,6 +593,7 @@ void do_summary(void) #define TIME_STR_LEN 9 const char *TIME_STR_FORMAT = "%H:%M:%S"; char time_str[TIME_STR_LEN]; + const char *ver_str; unsigned run = 0, block = 0, pause = 0, crash = 0, dying = 0, shutdown = 0; unsigned i, num_domains = 0; @@ -603,7 +604,8 @@ void do_summary(void) strftime(time_str, TIME_STR_LEN, TIME_STR_FORMAT, localtime(&curtime.tv_sec)); num_domains = xenstat_node_num_domains(cur_node); - print("xentop - %s\n", time_str); + ver_str = xenstat_node_xen_ver( cur_node); + print("xentop - %s Xen %s\n", time_str, ver_str); /* Tabulate what states domains are in for summary */ for (i=0; i < num_domains; i++) { |