Browse Source

sysmetrics lib update

master
Kirill Nikolaev 1 month ago
parent
commit
4b06b4383b
Signed by: sokket <sokket@oceancraft.ru> GPG Key ID: 082FDA12D688C5C1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      agent/json/json.c

+ 1
- 1
agent/json/json.c View File

@@ -75,7 +75,7 @@ json_t *make_json(metrics *m) {

// Temperature block
json_t *temperatures = json_object();
for (temp_input *iter = m->temp_inputs; iter->device_name; iter++) {
for (temp_input *iter = m->temp_inputs; iter; iter = iter->next) {
json_t *temp_device = json_object();
json_object_set_new(temp_device, "current", json_integer(iter->current_value));
json_object_set_new(temp_device, "max", json_integer(iter->max_value));


Loading…
Cancel
Save