diff --git a/lib/proc.c b/lib/proc.c index fdb8fb16..becdbcb7 100644 --- a/lib/proc.c +++ b/lib/proc.c @@ -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 ++)