diff options
author | bojan <bojan@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-25 00:48:15 +0000 |
---|---|---|
committer | bojan <bojan@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-25 00:48:15 +0000 |
commit | ac1e28bf8667844a4f64b28bced116a351a40b78 (patch) | |
tree | 636c5f905ebb879a3f3bfb92214395cdde2567c3 | |
parent | eccc61b6614e149041bc8f3484a5b67ef1da0492 (diff) | |
download | libapr-util-ac1e28bf8667844a4f64b28bced116a351a40b78.tar.gz |
Fix parsing of rusage in stats data.
PR 44587.
Patch by Bryant Scott <bryantscott gmail.com>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@679637 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | memcache/apr_memcache.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/memcache/apr_memcache.c b/memcache/apr_memcache.c index c25a5407..c3b92855 100644 --- a/memcache/apr_memcache.c +++ b/memcache/apr_memcache.c @@ -1519,15 +1519,11 @@ static apr_time_t stat_read_rtime(apr_pool_t *p, char *buf, apr_size_t len) char *tok; char *secs; char *usecs; - const char *sep = ":"; + const char *sep = ":."; buf[len-2] = '\0'; secs = apr_strtok(buf, sep, &tok); - if (secs == NULL) { - sep = "."; - secs = apr_strtok(buf, sep, &tok); - } usecs = apr_strtok(NULL, sep, &tok); if (secs && usecs) { return apr_time_make(atoi(secs), atoi(usecs)); |