Commit 6e05f333 authored by antirez's avatar antirez
Browse files

Print arch bits with redis-server -v

parent 4c442e9d
...@@ -2302,8 +2302,12 @@ void daemonize(void) { ...@@ -2302,8 +2302,12 @@ void daemonize(void) {
} }
void version() { void version() {
printf("Redis server v=%s sha=%s:%d malloc=%s\n", REDIS_VERSION, printf("Redis server v=%s sha=%s:%d malloc=%s bits=%d\n",
redisGitSHA1(), atoi(redisGitDirty()) > 0, ZMALLOC_LIB); REDIS_VERSION,
redisGitSHA1(),
atoi(redisGitDirty()) > 0,
ZMALLOC_LIB,
sizeof(long) == 4 ? 32 : 64);
exit(0); exit(0);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment