Skip to content

Commit

Permalink
Update check.yml
Browse files Browse the repository at this point in the history
Signed-off-by: qiaofeng1227 <76487013@qq.com>
  • Loading branch information
qiaofeng1227 authored Oct 22, 2024
1 parent 8085cfd commit daa03d7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ jobs:
echo "Downloaded size: $DOWNLOADED_SIZE MB"
echo "Duration: $DURATION seconds"
echo "Average speed: $AVERAGE_SPEED MB/s"
# Check if the average speed is less than 1 MB/s
if (( $(echo "$AVERAGE_SPEED < 1" | bc -l) )); then
echo "Download speed is below 1 MB/s, which is not acceptable."
else
echo "Download speed is acceptable."
fi
else
echo "Failed to calculate the average speed."
fi
Expand Down

0 comments on commit daa03d7

Please sign in to comment.