projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
disk plugin: Support Linux kernels with additional fields.
[collectd.git]
/
src
/
memcached.c
diff --git
a/src/memcached.c
b/src/memcached.c
index
79c38a7
..
cfdf903
100644
(file)
--- a/
src/memcached.c
+++ b/
src/memcached.c
@@
-341,9
+341,10
@@
static int memcached_read(user_data_t *user_data) {
* CPU time consumed by the memcached process
*/
if (FIELD_IS("rusage_user")) {
* 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")) {
} else if (FIELD_IS("rusage_system")) {
- rusage_syst = ato
ll(fields[2])
;
+ rusage_syst = ato
f(fields[2]) * 1000000
;
}
/*
}
/*