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 committed 2012-01-13 09:41:36 +00:00
1 parent cd2ff28d7b
commit ffa146909c
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -6,6 +6,7 @@ SVN HEAD
sensors: Added support for new sysfs attributes
Display both instantaneous and average power if available.
Report thermal sensor type 1 as CPU diode
Align power values better
fancontrol: Support setup where one PWM output controls several fans
Output error messages to stderr
sensors-detect: Stop calling for PIIX5 SMBus testers
+1 -1
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 ");