For example, the heartbeat value in device.rs comes from device_info structure. The heartbeat value is updated every second, but the device_info structure is not updated once created, so the correct heartbeat value of the device cannot be obtained. I think it should be read file and return value when it requested such as Fetcher in hwmon.rs.
For example, the
heartbeat
value in device.rs comes fromdevice_info
structure. Theheartbeat
value is updated every second, but thedevice_info
structure is not updated once created, so the correctheartbeat
value of the device cannot be obtained. I think it should be read file and return value when it requested such asFetcher
in hwmon.rs.