furiosa-ai / device-api

APIs that offers NPU devices' information and allow to control the devices
Apache License 2.0
5 stars 8 forks source link

Real time values ​​not updating #78

Closed yw-furiosa closed 1 year ago

yw-furiosa commented 1 year ago

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.