Undo unacceptable hack. Better let things crash if they would,

at least we'll be able to investigate.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2092 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2003-11-24 20:18:47 +00:00
1 parent b62467b7fe
commit add66b1875
1 file changed
+3 -1
+3 -1
View File
@@ -349,7 +349,9 @@ int sensors_write_proc(sensors_chip_name name, int feature, double value)
sysctl_name[3] = the_feature->sysctl;
if (sysctl(sysctl_name, 4, buf, &buflen, NULL, 0))
return -SENSORS_ERR_PROC;
if (sysctl_name[0] != CTL_DEV) { sysctl_name[0] = CTL_DEV ; }
/* The following line is known to solve random problems, still it
can't be considered a definitive solution...
if (sysctl_name[0] != CTL_DEV) { sysctl_name[0] = CTL_DEV ; } */
for (mag = the_feature->scaling; mag > 0; mag --)
value *= 10.0;
for (; mag < 0; mag ++)