]> git.saurik.com Git - redis.git/commitdiff
Issue #131. stime/utime reported in INFO was inverted. Fixed thanks to Didier Spezia.
authorantirez <antirez@gmail.com>
Mon, 10 Oct 2011 13:29:36 +0000 (15:29 +0200)
committerantirez <antirez@gmail.com>
Mon, 10 Oct 2011 13:31:55 +0000 (15:31 +0200)
src/redis.c

index 0bcb3fe4c0f703bb8febf97ab8e6ef8a46753b8a..314a430ee39e3be806b904a0e44a02fd841f559b 100644 (file)
@@ -1510,10 +1510,10 @@ sds genRedisInfoString(char *section) {
         "used_cpu_user:%.2f\r\n"
         "used_cpu_sys_children:%.2f\r\n"
         "used_cpu_user_children:%.2f\r\n",
-        (float)self_ru.ru_utime.tv_sec+(float)self_ru.ru_utime.tv_usec/1000000,
         (float)self_ru.ru_stime.tv_sec+(float)self_ru.ru_stime.tv_usec/1000000,
-        (float)c_ru.ru_utime.tv_sec+(float)c_ru.ru_utime.tv_usec/1000000,
-        (float)c_ru.ru_stime.tv_sec+(float)c_ru.ru_stime.tv_usec/1000000);
+        (float)self_ru.ru_utime.tv_sec+(float)self_ru.ru_utime.tv_usec/1000000,
+        (float)c_ru.ru_stime.tv_sec+(float)c_ru.ru_stime.tv_usec/1000000,
+        (float)c_ru.ru_utime.tv_sec+(float)c_ru.ru_utime.tv_usec/1000000);
     }
 
     /* cmdtime */