Skip to content

Commit

Permalink
Removed numfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Spaarsh committed Jan 22, 2025
1 parent e05c700 commit 952b89e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions benchmarks/bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ data_imdb() {
else
# Existing file is partially installed, remove it and initiate a new download
echo "MISMATCH"
echo "Size less than expected: $(numfmt --to=iec-i --suffix=B ${OUTPUT_SIZE}) found, $(numfmt --to=iec-i --suffix=B ${expected_size}) required"
echo "Size less than expected: ${OUTPUT_SIZE} found, ${expected_size} required"
echo "Downloading IMDB dataset..."
rm -f "${imdb_temp_gz}"

Expand All @@ -563,16 +563,16 @@ data_imdb() {
DOWNLOADED_SIZE=$(wc -c "${imdb_temp_gz}" | awk '{print $1}')
if [ "${DOWNLOADED_SIZE}" != "${expected_size}" ]; then
echo "Error: Download size mismatch"
echo "Expected: $(numfmt --to=iec-i --suffix=B ${expected_size})"
echo "Got: $(numfmt --to=iec-i --suffix=B ${DOWNLOADED_SIZE})"
echo "Expected: ${expected_size}"
echo "Got: ${DOWNLADED_SIZE}"
echo "Please re-initiate the download"
return 1
fi
fi
else
# No existing file found, initiate a new download
echo "not found"
echo "Downloading IMDB dataset ($(numfmt --to=iec-i --suffix=B ${expected_size}) expected)..."
echo "Downloading IMDB dataset ${expected_size} expected)..."
# Download the dataset
curl -o "${imdb_temp_gz}" "${imdb_url}"

Expand Down

0 comments on commit 952b89e

Please sign in to comment.