projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: incorrect time unit used when waiting on destruction handle
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
destroy.c
diff --git
a/src/bin/lttng/commands/destroy.c
b/src/bin/lttng/commands/destroy.c
index e52735f439a453067f6099c59ba7a594891a72b4..a258f64097f275c0c116c4cae1232f5dba181544 100644
(file)
--- a/
src/bin/lttng/commands/destroy.c
+++ b/
src/bin/lttng/commands/destroy.c
@@
-101,7
+101,7
@@
static int destroy_session(struct lttng_session *session)
fflush(stdout);
}
fflush(stdout);
}
- usleep(DEFAULT_DATA_AVAILABILITY_WAIT_TIME);
+ usleep(DEFAULT_DATA_AVAILABILITY_WAIT_TIME
_US
);
_MSG(".");
fflush(stdout);
}
_MSG(".");
fflush(stdout);
}
@@
-127,7
+127,7
@@
static int destroy_session(struct lttng_session *session)
do {
status = lttng_destruction_handle_wait_for_completion(handle,
do {
status = lttng_destruction_handle_wait_for_completion(handle,
- DEFAULT_DATA_AVAILABILITY_WAIT_TIME);
+ DEFAULT_DATA_AVAILABILITY_WAIT_TIME
_US / USEC_PER_MSEC
);
switch (status) {
case LTTNG_DESTRUCTION_HANDLE_STATUS_TIMEOUT:
if (!printed_wait_msg) {
switch (status) {
case LTTNG_DESTRUCTION_HANDLE_STATUS_TIMEOUT:
if (!printed_wait_msg) {
This page took
0.025149 seconds
and
5
git commands to generate.