- if (!usage->threshold_ratio.set && !usage->threshold_bytes.set) {
- ERR("Invalid buffer condition: a threshold must be set.");
+ if (usage->threshold_ratio.set == usage->threshold_bytes.set) {
+ ERR("Invalid buffer condition: a threshold must be set or both type cannot be used simultaneously.");
int ret;
struct lttng_condition_buffer_usage *usage;
size_t session_name_len, channel_name_len;
int ret;
struct lttng_condition_buffer_usage *usage;
size_t session_name_len, channel_name_len;