]> git.saurik.com Git - redis.git/commitdiff
Print arch bits with redis-server -v
authorantirez <antirez@gmail.com>
Thu, 12 Apr 2012 09:50:18 +0000 (11:50 +0200)
committerantirez <antirez@gmail.com>
Thu, 12 Apr 2012 09:50:18 +0000 (11:50 +0200)
src/redis.c

index f1fda57b5f568d6c96083b08b6182ed463cb21db..7da9c54595af9cd91fd2b8d0881687c6c42d77d6 100644 (file)
@@ -2302,8 +2302,12 @@ void daemonize(void) {
 }
 
 void version() {
-    printf("Redis server v=%s sha=%s:%d malloc=%s\n", REDIS_VERSION,
-        redisGitSHA1(), atoi(redisGitDirty()) > 0, ZMALLOC_LIB);
+    printf("Redis server v=%s sha=%s:%d malloc=%s bits=%d\n",
+        REDIS_VERSION,
+        redisGitSHA1(),
+        atoi(redisGitDirty()) > 0,
+        ZMALLOC_LIB,
+        sizeof(long) == 4 ? 32 : 64);
     exit(0);
 }