X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcommon%2Fconditions%2Fbuffer-usage.c;h=a97f6d59f74b36b6d9eb9f1ef5c4994968659a00;hb=0879b5fefc747e458f1529b99895ef2a47428393;hp=cc9e9cde89aade3eb0a5059ca3fe628457fd1260;hpb=aae40bf574571ba571f179fd08ef1c8b732812a1;p=lttng-tools.git diff --git a/src/common/conditions/buffer-usage.c b/src/common/conditions/buffer-usage.c index cc9e9cde8..a97f6d59f 100644 --- a/src/common/conditions/buffer-usage.c +++ b/src/common/conditions/buffer-usage.c @@ -62,8 +62,8 @@ bool lttng_condition_buffer_usage_validate( ERR("Invalid buffer condition: a target channel name must be set."); goto end; } - 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."); goto end; } if (!usage->domain.set) {