diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2023-07-11 22:25:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-11 22:25:21 +0300 |
commit | 31483242a4cf3f9183c61031c328d1c9039a37e2 (patch) | |
tree | 6086e5afe3b9081999381e39b1c500265ba6e890 /collectors/freeipmi.plugin | |
parent | 301cc27406859849a0904ed8b3b526bd9a542dbe (diff) |
fix(freeipmi): set sensor state on every reading (#15360)
Diffstat (limited to 'collectors/freeipmi.plugin')
-rw-r--r-- | collectors/freeipmi.plugin/freeipmi_plugin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/collectors/freeipmi.plugin/freeipmi_plugin.c b/collectors/freeipmi.plugin/freeipmi_plugin.c index aeee56a219..ee90de17f7 100644 --- a/collectors/freeipmi.plugin/freeipmi_plugin.c +++ b/collectors/freeipmi.plugin/freeipmi_plugin.c @@ -942,6 +942,8 @@ static void netdata_update_ipmi_sensor_reading( sn->last_collected_metric_ut = state->sensors.now_ut; } + sn->sensor_state = sensor_state; + sn->last_collected_state_ut = state->sensors.now_ut; dictionary_acquired_item_release(state->sensors.dict, item); |