From: Pavel Rochnyack Date: Sun, 22 Jul 2018 05:43:28 +0000 (+0700) Subject: processes: Fix conversion of 'delay_rate' values. Now they really have seconds per... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=430f41edba3d13ea1697319c94a2e104f98685ff;p=collectd.git processes: Fix conversion of 'delay_rate' values. Now they really have seconds per second unit. --- diff --git a/src/processes.c b/src/processes.c index 86e99c3a..aa7cfa39 100644 --- a/src/processes.c +++ b/src/processes.c @@ -924,7 +924,7 @@ static void ps_submit_proc_list(procstat_t *ps) { sstrncpy(vl.type, "delay_rate", sizeof(vl.type)); sstrncpy(vl.type_instance, delay_metrics[i].type_instance, sizeof(vl.type_instance)); - vl.values[0].gauge = delay_metrics[i].rate_ns * delay_factor; + vl.values[0].gauge = delay_metrics[i].rate_ns / delay_factor; vl.values_len = 1; plugin_dispatch_values(&vl); }