Skip to content

Commit

Permalink
Attempt at fixing issue yegor256#576.
Browse files Browse the repository at this point in the history
  • Loading branch information
mentiflectax committed Dec 25, 2014
1 parent 536e23b commit c2c212e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/com/rultor/agents/req/_head.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ echo "${scripts[@]}" >> script.sh

function docker_when_possible {
while true; do
load=$(uptime | awk '{print $12}' | cut -d ',' -f 1)
load=$(uptime | sed 's/ /\n/g' | tail -n 1)
if [ `echo $load \> 30 | bc` -eq 1 ]; then
echo "load average is ${load}, too high to run a new Docker container"
echo "I will try again in 15 seconds"
Expand Down

0 comments on commit c2c212e

Please sign in to comment.