]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3991aaed7982b9e0aeb8a9a276ec3ec71819c6b7
tree0dc54a7f318f054b2e7570d7dc561348dfda1399
parent8aad3cd31ac7a4b6cd6b45ae9e379e395fafdae4
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