Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
3b67a0f9
Commit
3b67a0f9
authored
Jan 10, 2012
by
antirez
Browse files
show GCC version in INFO output.
parent
2c2b6159
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis.c
View file @
3b67a0f9
...
...
@@ -1255,6 +1255,7 @@ sds genRedisInfoString(void) {
"redis_git_dirty:%d
\r\n
"
"arch_bits:%s
\r\n
"
"multiplexing_api:%s
\r\n
"
"gcc_version:%d.%d.%d
\r\n
"
"process_id:%ld
\r\n
"
"uptime_in_seconds:%ld
\r\n
"
"uptime_in_days:%ld
\r\n
"
...
...
@@ -1297,6 +1298,11 @@ sds genRedisInfoString(void) {
strtol
(
redisGitDirty
(),
NULL
,
10
)
>
0
,
(
sizeof
(
long
)
==
8
)
?
"64"
:
"32"
,
aeGetApiName
(),
#ifdef __GNUC__
__GNUC__
,
__GNUC_MINOR__
,
__GNUC_PATCHLEVEL__
,
#else
0
,
0
,
0
,
#endif
(
long
)
getpid
(),
uptime
,
uptime
/
(
3600
*
24
),
...
...
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