#!/bin/bash
# Waits for the end of the benchmark

while true
do
    count=$(ps ax | grep p4d_ | grep -v grep | wc -l)
    [[ $count -eq 1 ]] && echo -e "\n\nBenchmark has finished!!\n\n" && exit 1
    sleep 10
done

