mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-31 13:10:30 +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:
1 parent
cd2ff28d7b
commit
ffa146909c
2 files changed
+2
-1
No files matched your search
@@ -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
|
||||
|
||||
@@ -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 ");
|
||||
|
||||
|
||||
Reference in new issue
Block a user