aboutsummaryrefslogtreecommitdiff
path: root/broccoli/script/measure-packets.sh
diff options
context:
space:
mode:
authorAndreas Lindhé <andreas@lindhe.io>2017-10-15 08:58:40 +0200
committerAndreas Lindhé <andreas@lindhe.io>2017-10-15 08:58:40 +0200
commit19f08571283113d8650e07c058d58b5362241ac7 (patch)
tree0fb9e5c415ce6fcca889a17a9faa1b97f86b8259 /broccoli/script/measure-packets.sh
parentfcac1bc4ccef7bb180d97a47a9f84a097ef70e75 (diff)
downloadmidbro-19f08571283113d8650e07c058d58b5362241ac7.tar.gz
midbro-19f08571283113d8650e07c058d58b5362241ac7.tar.bz2
Add timestamps to measurements
Diffstat (limited to 'broccoli/script/measure-packets.sh')
-rw-r--r--broccoli/script/measure-packets.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/broccoli/script/measure-packets.sh b/broccoli/script/measure-packets.sh
index 9db9228..53074ee 100644
--- a/broccoli/script/measure-packets.sh
+++ b/broccoli/script/measure-packets.sh
@@ -74,12 +74,14 @@ IDLE=$(echo "${IDLECPU}+5.0" | bc);
echo "Idle baseload is: $IDLE";
execute_command "killall bro"
+echo "Starting time: $(date +'%F_%T')"
+
echo -ne "sent\t"
for SPEED in ${SPEEDS[@]}
do
echo -ne "${SPEED}\t"
done
-echo
+echo "time"
for COUNT in ${COUNTS[@]}
do
@@ -89,7 +91,7 @@ do
COUNT_RECEIVED=$(measure_packets ${SPEED} ${COUNT})
echo -ne "${COUNT_RECEIVED}\t"
done
- echo
+ echo "$(date +'%F_%T')"
done
execute_command "rm -rf \"${BRO_DIR}\""