summaryrefslogtreecommitdiff
path: root/src/sentinel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sentinel.c')
-rw-r--r--src/sentinel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sentinel.c b/src/sentinel.c
index 473174cf1..526b2c167 100644
--- a/src/sentinel.c
+++ b/src/sentinel.c
@@ -3919,11 +3919,13 @@ void sentinelInfoCommand(client *c) {
"# Sentinel\r\n"
"sentinel_masters:%lu\r\n"
"sentinel_tilt:%d\r\n"
+ "sentinel_tilt_since_seconds:%jd\r\n"
"sentinel_running_scripts:%d\r\n"
"sentinel_scripts_queue_length:%ld\r\n"
"sentinel_simulate_failure_flags:%lu\r\n",
dictSize(sentinel.masters),
sentinel.tilt,
+ sentinel.tilt ? (intmax_t)((mstime()-sentinel.tilt_start_time)/1000) : -1,
sentinel.running_scripts,
listLength(sentinel.scripts_queue),
sentinel.simfailure_flags);