Fix: sessiond: use system LTTng-UST headers when available
[lttng-tools.git] / src / common / consumer / consumer-timer.c
index 557d96b2935c4c8abbe43f9246e11fc4969b01f2..f7d4b78e6ca80313af1ce819d236336cf4dfbdef 100644 (file)
@@ -21,7 +21,6 @@
 #include <inttypes.h>
 #include <signal.h>
 
-#include <bin/lttng-sessiond/ust-ctl.h>
 #include <bin/lttng-consumerd/health-consumerd.h>
 #include <common/common.h>
 #include <common/compat/endian.h>
@@ -711,6 +710,7 @@ void monitor_timer(struct lttng_consumer_local_data *ctx,
        sample_positions_cb sample;
        get_consumed_cb get_consumed;
        get_produced_cb get_produced;
+       uint64_t lowest = 0, highest = 0;
 
        assert(channel);
 
@@ -734,11 +734,13 @@ void monitor_timer(struct lttng_consumer_local_data *ctx,
                abort();
        }
 
-       ret = sample_channel_positions(channel, &msg.highest, &msg.lowest,
+       ret = sample_channel_positions(channel, &highest, &lowest,
                        sample, get_consumed, get_produced);
        if (ret) {
                return;
        }
+       msg.highest = highest;
+       msg.lowest = lowest;
 
        /*
         * Writes performed here are assumed to be atomic which is only
This page took 0.026037 seconds and 4 git commands to generate.