make it take size after all
This commit is contained in:
@@ -71,7 +71,7 @@ void sys_get_network(struct network_t *network) {
|
||||
|
||||
void sys_detect(struct syssensors_t *s, const char *platform) {
|
||||
snprintf(s->hwmon, sizeof(s->hwmon), "/sys/devices/platform/%s/hwmon", platform);
|
||||
const int ret = get_hwmon_dir(s->hwmon);
|
||||
const int ret = get_hwmon_dir(s->hwmon, sizeof(s->hwmon));
|
||||
if (ret != 0) {
|
||||
s->hwmon[0] = '\0';
|
||||
applog(LOG_WRN, "Can't open system hwmon. Kernel params added? Module loaded? See README");
|
||||
|
||||
Reference in New Issue
Block a user