mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 06:15:15 +00:00
Add support for additional sysfs attributes to libsensors and to sensors command
inX_average inX_lowest inX_highest tempX_lowest tempX_highest currX_average currX_lowest currX_highest git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6007 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -266,6 +266,8 @@ static const struct sensor_subfeature_list temp_sensors[] = {
|
||||
{ SENSORS_SUBFEATURE_TEMP_CRIT, temp_crit_sensors, 0, "crit" },
|
||||
{ SENSORS_SUBFEATURE_TEMP_EMERGENCY, temp_emergency_sensors, 0,
|
||||
"emerg" },
|
||||
{ SENSORS_SUBFEATURE_TEMP_LOWEST, NULL, 0, "lowest" },
|
||||
{ SENSORS_SUBFEATURE_TEMP_HIGHEST, NULL, 0, "highest" },
|
||||
{ -1, NULL, 0, NULL }
|
||||
};
|
||||
|
||||
@@ -357,6 +359,9 @@ static const struct sensor_subfeature_list voltage_sensors[] = {
|
||||
{ SENSORS_SUBFEATURE_IN_MIN, NULL, 0, "min" },
|
||||
{ SENSORS_SUBFEATURE_IN_MAX, NULL, 0, "max" },
|
||||
{ SENSORS_SUBFEATURE_IN_CRIT, NULL, 0, "crit max" },
|
||||
{ SENSORS_SUBFEATURE_IN_AVERAGE, NULL, 0, "avg" },
|
||||
{ SENSORS_SUBFEATURE_IN_LOWEST, NULL, 0, "lowest" },
|
||||
{ SENSORS_SUBFEATURE_IN_HIGHEST, NULL, 0, "highest" },
|
||||
{ -1, NULL, 0, NULL }
|
||||
};
|
||||
|
||||
@@ -651,6 +656,9 @@ static const struct sensor_subfeature_list current_sensors[] = {
|
||||
{ SENSORS_SUBFEATURE_CURR_MIN, NULL, 0, "min" },
|
||||
{ SENSORS_SUBFEATURE_CURR_MAX, NULL, 0, "max" },
|
||||
{ SENSORS_SUBFEATURE_CURR_CRIT, NULL, 0, "crit max" },
|
||||
{ SENSORS_SUBFEATURE_CURR_AVERAGE, NULL, 0, "avg" },
|
||||
{ SENSORS_SUBFEATURE_CURR_LOWEST, NULL, 0, "lowest" },
|
||||
{ SENSORS_SUBFEATURE_CURR_HIGHEST, NULL, 0, "highest" },
|
||||
{ -1, NULL, 0, NULL }
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user