]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
processes: Fix conversion of 'delay_rate' values. Now they really have seconds per...
authorPavel Rochnyack <pavel2000@ngs.ru>
Sun, 22 Jul 2018 05:43:28 +0000 (12:43 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Sun, 22 Jul 2018 05:43:28 +0000 (12:43 +0700)
src/processes.c

index 86e99c3aedd917911e643f9ba6b738751973fed3..aa7cfa395afb559aeaef6da7d262a61f6a4d17d1 100644 (file)
@@ -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);
   }