diff options
author | Andreas Lindhé <andreas@lindhe.io> | 2017-10-20 18:44:59 +0200 |
---|---|---|
committer | Andreas Lindhé <andreas@lindhe.io> | 2017-10-23 13:30:49 +0200 |
commit | b1f2b62c7c76a53e30d70588e4bf4da09355c65b (patch) | |
tree | 78f085b452b1f3113fba071c18ac7abeb902dc8e /broccoli/script | |
parent | 61d86b711a9eeb52c56e306efb462d4b401bd832 (diff) | |
download | midbro-b1f2b62c7c76a53e30d70588e4bf4da09355c65b.tar.gz midbro-b1f2b62c7c76a53e30d70588e4bf4da09355c65b.tar.bz2 |
Change test threashhold to 10%
Diffstat (limited to 'broccoli/script')
-rw-r--r-- | broccoli/script/measure-packets.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/broccoli/script/measure-packets.sh b/broccoli/script/measure-packets.sh index 94080ea..0e77bf8 100644 --- a/broccoli/script/measure-packets.sh +++ b/broccoli/script/measure-packets.sh @@ -90,7 +90,7 @@ BRO_DIR=$(execute_command "mktemp --directory --tmpdir bro.XXX") BRO_PID=$(execute_command "bro -i \"${BRO_INTERFACE}\" -C -b Log::default_writer=Log::WRITER_NONE \"${BRO_SCRIPT}\" > ${BRO_DIR}/bro-out.txt 2> ${BRO_DIR}/bro-err.txt & echo \$!") sleep 10 IDLECPU=$(execute_command "ps -q ${BRO_PID} -o pcpu --no-headers") -IDLE=$(echo "${IDLECPU}+5.0" | bc); +IDLE=$(echo "${IDLECPU}+10" | bc); echo "Idle baseload is: $IDLE"; execute_command "killall bro" |