OSDN Git Service

tools/power turbostat: use wide columns to display large numbers
authorLen Brown <len.brown@intel.com>
Thu, 16 Feb 2017 02:45:40 +0000 (21:45 -0500)
committerLen Brown <len.brown@intel.com>
Wed, 1 Mar 2017 05:14:23 +0000 (00:14 -0500)
commit0de6c0df4ecc32ffaf064fea3a43846ba4474bd0
tree0dc54a7f318f054b2e7570d7dc561348dfda1399
parentc8ade3616a1a5cf7767c0338d2b02007796f5d88
tools/power turbostat: use wide columns to display large numbers

When a counter overlfows 7 columns, it shifts the remaining
columns to the right, so they no longer line up under
their column header.

Update turbostat to dectect when it is handling large
numbers, and switch to wider columns where, necessary.

Reported-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c