Fix: double similar condition
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 14 Mar 2018 21:35:05 +0000 (17:35 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 26 Mar 2018 19:35:50 +0000 (15:35 -0400)
Based on the pattern of the function, threshold_bytes should be used
inside the "else if" condition.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/notification-thread-events.c

index 1793cac6b7e98804328ecc7f8d9fb29af5538beb..2f738bb047db0b3656c2a215dcb7143b49792707 100644 (file)
@@ -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;
This page took 0.030088 seconds and 4 git commands to generate.