From: Jonathan Rajotte Date: Wed, 14 Mar 2018 21:35:05 +0000 (-0400) Subject: Fix: double similar condition X-Git-Tag: v2.10.4~19 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b6d67aac976434ea1d13d96ee3640624df8eccb7;p=lttng-tools.git Fix: double similar condition Based on the pattern of the function, threshold_bytes should be used inside the "else if" condition. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/notification-thread-events.c b/src/bin/lttng-sessiond/notification-thread-events.c index 1793cac6b..2f738bb04 100644 --- a/src/bin/lttng-sessiond/notification-thread-events.c +++ b/src/bin/lttng-sessiond/notification-thread-events.c @@ -295,7 +295,7 @@ unsigned long lttng_condition_buffer_usage_hash( val = condition->threshold_ratio.value * (double) UINT32_MAX; hash ^= hash_key_u64(&val, lttng_ht_seed); - } else if (condition->threshold_ratio.set) { + } else if (condition->threshold_bytes.set) { uint64_t val; val = condition->threshold_bytes.value;