From: Jérémie Galarneau Date: Thu, 2 Apr 2015 22:09:29 +0000 (-0400) Subject: UI: Only show live timer when the session is in live mode X-Git-Tag: v2.7.0-rc1~51 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fcbc96a28b4a093cfd4ce39ac8d1b9fc000b1c7e;p=lttng-tools.git UI: Only show live timer when the session is in live mode Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index a8ed99989..44a4c44a3 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -1408,8 +1408,11 @@ static int list_sessions(const char *session_name) active_string(sessions[i].enabled), snapshot_string(sessions[i].snapshot_mode)); MSG("%sTrace path: %s", indent4, sessions[i].path); - MSG("%sLive timer interval (usec): %u\n", indent4, - sessions[i].live_timer_interval); + if (sessions[i].live_timer_interval != 0) { + MSG("%sLive timer interval (usec): %u", indent4, + sessions[i].live_timer_interval); + } + MSG(""); } }