mirror of
https://github.com/fluencelabs/redis
synced 2025-03-31 14:51:04 +00:00
Cluster: data_age conversion to milliseconds fixed.
This commit is contained in:
parent
573c2fea91
commit
1447d28c0f
@ -1629,9 +1629,9 @@ void clusterHandleSlaveFailover(void) {
|
|||||||
|
|
||||||
/* Set data_age to the number of seconds we are disconnected from the master. */
|
/* Set data_age to the number of seconds we are disconnected from the master. */
|
||||||
if (server.repl_state == REDIS_REPL_CONNECTED) {
|
if (server.repl_state == REDIS_REPL_CONNECTED) {
|
||||||
data_age = server.unixtime - server.master->lastinteraction * 1000;
|
data_age = (server.unixtime - server.master->lastinteraction) * 1000;
|
||||||
} else {
|
} else {
|
||||||
data_age = server.unixtime - server.repl_down_since * 1000;
|
data_age = (server.unixtime - server.repl_down_since) * 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Pre conditions to run the function:
|
/* Pre conditions to run the function:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user