X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fhealth%2Fhealth.c;h=62e211419fe463c28ae5c64cb842f1038295bfc7;hb=0c51e8f329cdd907761e34c3e4394200a56c6812;hp=3eea3adc0c34f5b6438736f9462b74ea6606bba6;hpb=6c1c0768320135c6936c371b09731851b508c023;p=lttng-tools.git diff --git a/src/common/health/health.c b/src/common/health/health.c index 3eea3adc0..62e211419 100644 --- a/src/common/health/health.c +++ b/src/common/health/health.c @@ -1,22 +1,11 @@ /* - * Copyright (C) 2012 - David Goulet - * Copyright (C) 2013 - Mathieu Desnoyers + * Copyright (C) 2012 David Goulet + * Copyright (C) 2013 Mathieu Desnoyers * - * 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 _GNU_SOURCE #define _LGPL_SOURCE #include #include @@ -172,7 +161,7 @@ static int validate_state(struct health_app *ha, struct health_state *state) last = state->last; current = uatomic_read(&state->current); - ret = clock_gettime(CLOCK_MONOTONIC, ¤t_time); + ret = lttng_clock_gettime(CLOCK_MONOTONIC, ¤t_time); if (ret < 0) { PERROR("Error reading time\n"); /* error */