summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aa2c1d1)
raw | patch | inline | side by side (parent: aa2c1d1)
author | Pavel Rochnyack <pavel2000@ngs.ru> | |
Mon, 9 Oct 2017 10:22:00 +0000 (17:22 +0700) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 9 Oct 2017 12:47:00 +0000 (14:47 +0200) |
Signed-off-by: Florian Forster <octo@collectd.org>
src/memcached.c | patch | blob | history |
diff --git a/src/memcached.c b/src/memcached.c
index 02215e1cc3bae0bedc92ceab6d41a025f66d817e..6c6f88f369ed6efa6a81986bc596acabe9dd6a6e 100644 (file)
--- a/src/memcached.c
+++ b/src/memcached.c
* CPU time consumed by the memcached process
*/
if (FIELD_IS("rusage_user")) {
- rusage_user = atoll(fields[2]);
+ /* Convert to useconds */
+ rusage_user = atof(fields[2]) * 1000000;
} else if (FIELD_IS("rusage_system")) {
- rusage_syst = atoll(fields[2]);
+ rusage_syst = atof(fields[2]) * 1000000;
}
/*