You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [ $((COUNT%DEBUG_EVERY)) -eq 0 -o $COUNT -eq $NUMFILES ]; then
NOW=`date +%s.%N | sed 's/[.]\([0-9][0-9][0-9][0-9]\).*/\1/'`
SPEND=$((NOW-LAST))
if [ $SPEND -eq 0 ]; then
SPEND=1
fi
SPEND_TOTAL=$((NOW-START))
if [ $SPEND_TOTAL -eq 0 ]; then
SPEND_TOTAL=1
fi
if [ $COUNT -lt $DEBUG_EVERY ]; then
OVERALL=$COUNT
else
OVERALL=$DEBUG_EVERY
fi
echo " - Wrote $COUNT/$NUMFILES files. Overall $SPEND ms, average $((COUNT*1000/SPEND_TOTAL)) files/s. Current $SPEND ms, average $((OVERALL*1000/SPEND)) files/s"