Skip to content

Commit

Permalink
Update check.yml
Browse files Browse the repository at this point in the history
Signed-off-by: qiaofeng1227 <[email protected]>
  • Loading branch information
qiaofeng1227 authored Oct 22, 2024
1 parent 40c13fc commit f77a130
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,12 @@ jobs:
else
pull_rate=0
fi
echo "Pull duration: $duration seconds"
echo "Pull rate: $pull_rate MB/s"
# Check if the pull rate is less than 1 MB/s
if (( $(echo "$pull_rate < 1" | bc -l) )); then
echo "Pull rate is less than 1 MB/s, marking as failure"
pull_rate=0
else
echo "Successfully pulled from $url at a rate of $pull_rate MB/s"
echo "Successfully pulled from $url"
fi
# Delete the pulled image to ensure fresh pull for the next URL
Expand All @@ -80,5 +76,5 @@ jobs:
pull_rate=0
fi
echo "Final pull rate: $pull_rate MB/s"
echo "--------------Final pull rate($url): $pull_rate MB/s--------"
done

0 comments on commit f77a130

Please sign in to comment.