From 2a0c688cb8d23110e4061cdf170b5250c776f25b Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 3 Nov 2010 11:59:55 +0000 Subject: [PATCH] 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 --- CHANGES | 1 + prog/sensors/chips.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index f6f156d3..ec0191f3 100644 --- a/CHANGES +++ b/CHANGES @@ -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 diff --git a/prog/sensors/chips.c b/prog/sensors/chips.c index 667a8d9b..04b2471b 100644 --- a/prog/sensors/chips.c +++ b/prog/sensors/chips.c @@ -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); }