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:
@@ -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