local buffer_usage_threshold_type=$6
local buffer_usage_threshold_value=$7
local nr_expected_notification=$8
local buffer_usage_threshold_type=$6
local buffer_usage_threshold_value=$7
local nr_expected_notification=$8
for (( i = 0; i < $nr_client_app; i++ )); do
low_app_output_file=$output_dir/${low_output_file_pattern}${i}
high_app_output_file=$output_dir/${high_output_file_pattern}${i}
for (( i = 0; i < $nr_client_app; i++ )); do
low_app_output_file=$output_dir/${low_output_file_pattern}${i}
high_app_output_file=$output_dir/${high_output_file_pattern}${i}
- start_client $low_app_output_file $SESSION_NAME $CHANNEL_NAME $domain_string LOW RATIO 0.0 $nr_notification_expected
- start_client $high_app_output_file $SESSION_NAME $CHANNEL_NAME $domain_string HIGH RATIO 0.420 $nr_notification_expected
+ start_client $low_app_output_file $SESSION_NAME $CHANNEL_NAME $domain_string LOW RATIO 0.0 $nr_notification_expected $(( $i % 2))
+ start_client $high_app_output_file $SESSION_NAME $CHANNEL_NAME $domain_string HIGH RATIO 0.420 $nr_notification_expected $(( $i % 2))
high_app_output_file=${high_output_file_pattern}.first_receiver
high_app_output_path=$output_dir/${high_app_output_file}
high_app_output_file=${high_output_file_pattern}.first_receiver
high_app_output_path=$output_dir/${high_app_output_file}
# notification on subscription
high_app_output_file=${high_output_file_pattern}.second_receiver
high_app_output_path=$output_dir/${high_app_output_file}
# notification on subscription
high_app_output_file=${high_output_file_pattern}.second_receiver
high_app_output_path=$output_dir/${high_app_output_file}
wait_for_message $output_dir "${high_app_output_file}" "sync: ready"
wait_for_message $output_dir "${high_app_output_file}" "notification: high 0"
wait_for_message $output_dir "${high_app_output_file}" "sync: ready"
wait_for_message $output_dir "${high_app_output_file}" "notification: high 0"