mirror of
https://github.com/fluencelabs/redis
synced 2025-06-23 05:51:34 +00:00
ifdefs added to use kevent on Free Open and Net BSD as well. INFO and ae.c modified in order to report the multiplexing API in use
This commit is contained in:
2
redis.c
2
redis.c
@ -5018,6 +5018,7 @@ static void infoCommand(redisClient *c) {
|
||||
info = sdscatprintf(sdsempty(),
|
||||
"redis_version:%s\r\n"
|
||||
"arch_bits:%s\r\n"
|
||||
"multiplexing_api:%s\r\n"
|
||||
"uptime_in_seconds:%d\r\n"
|
||||
"uptime_in_days:%d\r\n"
|
||||
"connected_clients:%d\r\n"
|
||||
@ -5031,6 +5032,7 @@ static void infoCommand(redisClient *c) {
|
||||
"role:%s\r\n"
|
||||
,REDIS_VERSION,
|
||||
(sizeof(long) == 8) ? "64" : "32",
|
||||
aeGetApiName(),
|
||||
uptime,
|
||||
uptime/(3600*24),
|
||||
listLength(server.clients)-listLength(server.slaves),
|
||||
|
Reference in New Issue
Block a user