Clean-up: sessiond: return an lttng_error_code from list_triggers
[lttng-tools.git] / src / bin / lttng-sessiond / condition-internal.c
index c86bf540106031b674dde19c7931ac681f719be8..8afb4ea1c667e43052762f83a11675aaf2dc34cf 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;
 
@@ -130,7 +127,6 @@ unsigned long lttng_condition_hash(const struct lttng_condition *condition)
        case LTTNG_CONDITION_TYPE_EVENT_RULE_MATCHES:
                return lttng_condition_event_rule_matches_hash(condition);
        default:
-               //ERR("[notification-thread] Unexpected condition type caught");
                abort();
        }
 }
This page took 0.026634 seconds and 4 git commands to generate.