summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e66c65b)
raw | patch | inline | side by side (parent: e66c65b)
author | Pavel Rochnyack <pavel2000@ngs.ru> | |
Mon, 9 Oct 2017 10:22:00 +0000 (17:22 +0700) | ||
committer | Pavel Rochnyack <pavel2000@ngs.ru> | |
Mon, 9 Oct 2017 10:23:29 +0000 (17:23 +0700) |
src/memcached.c | patch | blob | history |
diff --git a/src/memcached.c b/src/memcached.c
index 90f323f8be5ebfc005037bd9e33829723008e383..30b4f6c4dde330ee4598832cc61795515b7384e2 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;
}
/*