UI: Only show live timer when the session is in live mode
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 2 Apr 2015 22:09:29 +0000 (18:09 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 2 Apr 2015 22:09:29 +0000 (18:09 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/list.c

index a8ed999899d89fa83da56e8dc84fd9a00fbf73a4..44a4c44a364efaa9038984a867000419f94ce519 100644 (file)
@@ -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("");
                        }
                }
 
This page took 0.027004 seconds and 4 git commands to generate.