2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 14:25:39 +00:00

sensors: Align power values better.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6011 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2012-01-13 09:41:36 +00:00
parent cd2ff28d7b
commit ffa146909c
2 changed files with 2 additions and 1 deletions

View File

@@ -570,7 +570,7 @@ static void print_chip_power(const sensors_chip_name *name,
if (sf && get_input_value(name, sf, &val) == 0) {
scale_value(&val, &unit);
printf("%6.2f %sW ", val, unit);
printf("%6.2f %sW%*s", val, unit, 2 - (int)strlen(unit), "");
} else
printf(" N/A ");