projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Enable event after start command
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
health.c
diff --git
a/src/bin/lttng-sessiond/health.c
b/src/bin/lttng-sessiond/health.c
index 6c4de9430793fa1d8508c06dab17e88af0b6bcae..d382c04b536cc060fba5cb181e5e156696264924 100644
(file)
--- a/
src/bin/lttng-sessiond/health.c
+++ b/
src/bin/lttng-sessiond/health.c
@@
-43,7
+43,7
@@
static void time_diff(const struct timespec *time_a,
res->tv_nsec = 1000000000L + time_a->tv_sec - time_b->tv_sec;
} else {
res->tv_sec = time_a->tv_sec - time_b->tv_sec;
res->tv_nsec = 1000000000L + time_a->tv_sec - time_b->tv_sec;
} else {
res->tv_sec = time_a->tv_sec - time_b->tv_sec;
- res->tv_nsec = time_a->tv_
sec - time_b->tv_
sec;
+ res->tv_nsec = time_a->tv_
nsec - time_b->tv_n
sec;
}
}
}
}
@@
-84,7
+84,7
@@
int health_check_state(struct health_state *state)
current = uatomic_read(&state->current);
ret = clock_gettime(CLOCK_MONOTONIC, ¤t_time);
current = uatomic_read(&state->current);
ret = clock_gettime(CLOCK_MONOTONIC, ¤t_time);
- if (ret) {
+ if (ret
< 0
) {
PERROR("Error reading time\n");
/* error */
retval = 0;
PERROR("Error reading time\n");
/* error */
retval = 0;
@@
-123,7
+123,7
@@
int health_check_state(struct health_state *state)
}
end:
}
end:
- DBG("Health state current %
" PRIu64 ", last %" PRIu64 "
, ret %d",
+ DBG("Health state current %
lu, last %lu
, ret %d",
current, last, ret);
return retval;
current, last, ret);
return retval;
This page took
0.023565 seconds
and
4
git commands to generate.