projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c19e477
)
processes: Fix conversion of 'delay_rate' values. Now they really have seconds per...
author
Pavel Rochnyack
<pavel2000@ngs.ru>
Sun, 22 Jul 2018 05:43:28 +0000
(12:43 +0700)
committer
Pavel Rochnyack
<pavel2000@ngs.ru>
Sun, 22 Jul 2018 05:43:28 +0000
(12:43 +0700)
src/processes.c
patch
|
blob
|
history
diff --git
a/src/processes.c
b/src/processes.c
index
86e99c3
..
aa7cfa3
100644
(file)
--- 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);
}