projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: invalid discarded events on start/stop without event production
[lttng-tools.git]
/
src
/
common
/
consumer
/
consumer-stream.c
diff --git
a/src/common/consumer/consumer-stream.c
b/src/common/consumer/consumer-stream.c
index 7f4e4ce0a81686d1d096631d1ad1ed1234c15268..a4539fda4441964a75967bc8d6346d8a270b588f 100644
(file)
--- a/
src/common/consumer/consumer-stream.c
+++ b/
src/common/consumer/consumer-stream.c
@@
-79,8
+79,7
@@
static int consumer_stream_update_stats(struct lttng_consumer_stream *stream,
{
int ret = 0;
uint64_t sequence_number;
{
int ret = 0;
uint64_t sequence_number;
- const uint64_t discarded_events =
- LTTNG_OPTIONAL_GET(subbuf->info.data.sequence_number);
+ const uint64_t discarded_events = subbuf->info.data.events_discarded;
if (!subbuf->info.data.sequence_number.is_set) {
/* Command not supported by the tracer. */
if (!subbuf->info.data.sequence_number.is_set) {
/* Command not supported by the tracer. */
This page took
0.026734 seconds
and
4
git commands to generate.