Changeset 6011

Show
Ignore:
Timestamp:
01/13/12 10:41:36 (4 months ago)
Author:
khali
Message:

sensors: Align power values better.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r6010 r6011  
    77           Display both instantaneous and average power if available. 
    88           Report thermal sensor type 1 as CPU diode 
     9           Align power values better 
    910  fancontrol: Support setup where one PWM output controls several fans 
    1011              Output error messages to stderr 
  • lm-sensors/trunk/prog/sensors/chips.c

    r6010 r6011  
    571571        if (sf && get_input_value(name, sf, &val) == 0) { 
    572572                scale_value(&val, &unit); 
    573                 printf("%6.2f %sW  ", val, unit); 
     573                printf("%6.2f %sW%*s", val, unit, 2 - (int)strlen(unit), ""); 
    574574        } else 
    575575                printf("     N/A  ");