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;
case LTTNG_CONDITION_TYPE_EVENT_RULE_MATCHES:
return lttng_condition_event_rule_matches_hash(condition);
default:
- //ERR("[notification-thread] Unexpected condition type caught");
abort();
}
}