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 86e99c3..aa7cfa3 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);
   }