summaryrefslogtreecommitdiff
path: root/tools/hv/hv_set_ifconfig.sh
diff options
context:
space:
mode:
authorStefan Raspl <raspl@linux.vnet.ibm.com>2017-06-07 22:08:29 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2017-06-08 19:14:36 +0300
commit5a7d11f8dc59ddb36e89dca42a2526ea25914def (patch)
treedf27e5b6d919db0bff27a4fb980be1b476624233 /tools/hv/hv_set_ifconfig.sh
parent2da9d4aaa7348fc13374d7398c9c7027b0a9e2cb (diff)
downloadlinux-5a7d11f8dc59ddb36e89dca42a2526ea25914def.tar.xz
tools/kvm_stat: simplify line print logic
Simplify line print logic for header and data lines in interactive mode as previously suggested by Radim. While at it, add a space between the first two columns to avoid the total bleeding into the event name. Furthermore, for column 'Current', differentiate between no events being reported (empty 'Current' column) vs the case where events were reported but the average was rounded down to zero ('0' in 'Current column), for the folks who appreciate the difference. Finally: Only skip events which were not reported at all yet, instead of events that don't have a value in the current interval. Considered using constants for the field widths in the format strings. However, that would make things a bit more complicated, and considering that there are only two places where output happens, I figured it isn't worth the trouble. Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/hv/hv_set_ifconfig.sh')
0 files changed, 0 insertions, 0 deletions