From bfaba83f452c53682bcdc1075e760988b9549b67 Mon Sep 17 00:00:00 2001 From: Antoine Busque Date: Tue, 1 Sep 2015 19:12:28 -0400 Subject: [PATCH] Fix: initialize live_timer to 0 for snapshot session MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The live timer was being initialized to -1 for snapshot sessions, instead of the expected default value of 0 used elsewhere in the code. Fixes #879 Signed-off-by: Antoine Busque Signed-off-by: Jérémie Galarneau --- src/bin/lttng-sessiond/cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 4cc590a95..fdc72b834 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -2345,7 +2345,7 @@ int cmd_create_session_snapshot(char *name, struct lttng_uri *uris, * Create session in no output mode with URIs set to NULL. The uris we've * received are for a default snapshot output if one. */ - ret = cmd_create_session_uri(name, NULL, 0, creds, -1); + ret = cmd_create_session_uri(name, NULL, 0, creds, 0); if (ret != LTTNG_OK) { goto error; } -- 2.34.1