You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bo...@apache.org on 2008/07/25 02:48:15 UTC
svn commit: r679637 - /apr/apr-util/trunk/memcache/apr_memcache.c
Author: bojan
Date: Thu Jul 24 17:48:15 2008
New Revision: 679637
URL: http://svn.apache.org/viewvc?rev=679637&view=rev
Log:
Fix parsing of rusage in stats data.
PR 44587.
Patch by Bryant Scott <bryantscott gmail.com>
Modified:
apr/apr-util/trunk/memcache/apr_memcache.c
Modified: apr/apr-util/trunk/memcache/apr_memcache.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/memcache/apr_memcache.c?rev=679637&r1=679636&r2=679637&view=diff
==============================================================================
--- apr/apr-util/trunk/memcache/apr_memcache.c (original)
+++ apr/apr-util/trunk/memcache/apr_memcache.c Thu Jul 24 17:48:15 2008
@@ -1519,15 +1519,11 @@
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));