apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r679637 - /apr/apr-util/trunk/memcache/apr_memcache.c
Date Fri, 25 Jul 2008 00:48:15 GMT
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));



Mime
View raw message