]> 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)
commit0366913e45f92aa49f189c63cafb51540b441f41
tree0dc54a7f318f054b2e7570d7dc561348dfda1399
parent7608f67e9bdb732cf7017a84a4ba9479197c090e
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