Fix START_TIME initialization to ensure accurate timestamping during sample collection

This commit is contained in:
Yaro Kasear 2025-04-14 13:22:53 -05:00
parent 748a0ec911
commit 68ec7b8479

View file

@ -58,10 +58,10 @@ while [ "$COUNTER" -lt "$NUM_TESTS" ]; do
COUNTER=$((COUNTER + 1))
echo "Executing test $COUNTER of $NUM_TESTS..."
START_TIME=$(date -Iseconds)
for ((i=1; i<=NUM_SAMPLES; i++)); do
echo " Gathering sample $i of $NUM_SAMPLES..."
START_TIME=$(date -Iseconds)
# Wireless stats
link_level_noise=$(awk 'NR==3 {gsub(/\./, "", $3); gsub(/\./, "", $4); gsub(/\./, "", $5); print $3","$4","$5}' /proc/net/wireless)