From 478a83d656409ffd0f1525de07678bd8188f00c6 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 7 Apr 2004 18:03:14 +0000 Subject: [PATCH] Revert bogus assumption that magnitude of sysfs files can only be 0 or 3. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2421 7894878c-1315-0410-8ee3-d5d059ff63e0 --- lib/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/proc.c b/lib/proc.c index 10bb6015..36faa4cc 100644 --- a/lib/proc.c +++ b/lib/proc.c @@ -607,6 +607,6 @@ int getsysname(const sensors_chip_feature *feature, char *sysname, int *sysmag) "alarms", "beep_enable", "vrm", "fan%d_div" */ strcpy(sysname, name); - *sysmag = (feature->scaling==0?0:3); + *sysmag = feature->scaling; return 0; }