Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
d83eda48
Commit
d83eda48
authored
Oct 10, 2011
by
antirez
Browse files
Issue #131. stime/utime reported in INFO was inverted. Fixed thanks to Didier Spezia.
parent
4ab18a33
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
d83eda48
...
@@ -1510,10 +1510,10 @@ sds genRedisInfoString(char *section) {
...
@@ -1510,10 +1510,10 @@ sds genRedisInfoString(char *section) {
"used_cpu_user:%.2f
\r\n
"
"used_cpu_user:%.2f
\r\n
"
"used_cpu_sys_children:%.2f
\r\n
"
"used_cpu_sys_children:%.2f
\r\n
"
"used_cpu_user_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
)
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
)
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_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 */
/* cmdtime */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment