2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 22:35:23 +00:00

sensors: Display 3 decimal places in raw output.

This will make it easier for us to help users find out correct scaling
factors when needed. Instead of telling them to go read the raw sysfs
attributes, they can just report the output of "sensors -u -c /dev/null".


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5877 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2010-11-03 11:59:55 +00:00
parent 7f1c32dbd2
commit 2a0c688cb8
2 changed files with 2 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ lm-sensors CHANGES file
SVN HEAD
Makefile: Check for bison and flex
sensors: Display 3 decimal places in raw output
sensors-detect: Improve LM90 and W83L771 detection
Fix error seen if I2C bus numbers are not sequential

View File

@@ -58,7 +58,7 @@ void print_chip_raw(const sensors_chip_name *name)
sub->name,
sensors_strerror(err));
else
printf(" %s: %.2f\n", sub->name, val);
printf(" %s: %.3f\n", sub->name, val);
} else
printf("(%s)\n", label);
}