X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Frotate.c;h=ec816315789b83ec5cedb9602db88dc2394fa522;hb=29bcf415306cac513618483defc4251bc49aa1c3;hp=ab31546f9372e29bd63077077635bc30995f11a4;hpb=bbbfd84979130a11aebf172cf7d0d24e28165258;p=lttng-tools.git diff --git a/src/bin/lttng/commands/rotate.c b/src/bin/lttng/commands/rotate.c index ab31546f9..ec8163157 100644 --- a/src/bin/lttng/commands/rotate.c +++ b/src/bin/lttng/commands/rotate.c @@ -1,18 +1,8 @@ /* - * Copyright (C) 2017 - Julien Desfossez + * Copyright (C) 2017 Julien Desfossez * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License, version 2 only, - * as published by the Free Software Foundation. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #define _LGPL_SOURCE @@ -31,8 +21,7 @@ #include #include "../command.h" -#include -#include +#include static char *opt_session_name; static int opt_no_wait; @@ -104,7 +93,7 @@ static int rotate_tracing(char *session_name) } if (rotation_state == LTTNG_ROTATION_STATE_ONGOING) { - ret = usleep(DEFAULT_DATA_AVAILABILITY_WAIT_TIME); + ret = usleep(DEFAULT_DATA_AVAILABILITY_WAIT_TIME_US); if (ret) { PERROR("\nusleep"); goto error;