[Pkg-xen-devel] Bug#409355: xen-utils-common: please make width of hostname column in xentop wider

Adriaan Peeters apeeters at lashout.net
Fri Feb 2 11:26:58 CET 2007


Package: xen-utils-common
Version: 3.0.3-0-2
Severity: wishlist
Tags: patch

Currently when hostnames are wider than 10 chars, the xentop output is messed up.
Please add the following patch to support up to 20 chars, or better yet, allow the
columns to auto size :)

#! /bin/sh /usr/share/dpatch/dpatch-run
## xentop-name-width.dpatch by  <apeeters at lashout.net>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad xen-3.0-3.0.3-0~/tools/xenstat/xentop/xentop.c xen-3.0-3.0.3-0/tools/xenstat/xentop/xentop.c
--- xen-3.0-3.0.3-0~/tools/xenstat/xentop/xentop.c      2006-10-20 12:26:02.000000000 +0200
+++ xen-3.0-3.0.3-0/tools/xenstat/xentop/xentop.c       2007-02-02 10:30:19.000000000 +0100
@@ -144,7 +144,7 @@
 } field;
 
 field fields[] = {
-       { FIELD_NAME,    "NAME",      10, compare_name,    print_name    },
+       { FIELD_NAME,    "NAME",      20, compare_name,    print_name    },
        { FIELD_STATE,   "STATE",      6, compare_state,   print_state   },
        { FIELD_CPU,     "CPU(sec)",  10, compare_cpu,     print_cpu     },
        { FIELD_CPU_PCT, "CPU(%)",     6, compare_cpu_pct, print_cpu_pct },


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-xen-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages xen-utils-common depends on:
ii  lsb-base                      3.1-22     Linux Standard Base 3.1 init scrip
ii  udev                          0.103-2    /dev/ and hotplug management daemo

xen-utils-common recommends no packages.

-- no debconf information




More information about the Pkg-xen-devel mailing list