X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconditions%2Fbuffer-usage.c;h=a97f6d59f74b36b6d9eb9f1ef5c4994968659a00;hp=cc9e9cde89aade3eb0a5059ca3fe628457fd1260;hb=0879b5fefc747e458f1529b99895ef2a47428393;hpb=1b8894d079813c9e8a29e2da64f6427e62514a0e 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) {