Fix: condition: buffer-usage: use double instead of fixed point
[lttng-tools.git] / src / bin / lttng-sessiond / condition-internal.c
index c86bf540106031b674dde19c7931ac681f719be8..fb9a5c7540fe6bd63aef8525561b25d2b61bd2a2 100644 (file)
@@ -44,10 +44,7 @@ unsigned long lttng_condition_buffer_usage_hash(
                                lttng_ht_seed);
        }
        if (condition->threshold_ratio.set) {
-               uint64_t val;
-
-               val = condition->threshold_ratio.value * (double) UINT32_MAX;
-               hash ^= hash_key_u64(&val, lttng_ht_seed);
+               hash ^= hash_key_u64(&condition->threshold_ratio.value, lttng_ht_seed);
        } else if (condition->threshold_bytes.set) {
                uint64_t val;
 
This page took 0.024465 seconds and 4 git commands to generate.