Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Merge pull request #6408 from Miciah/rsync_destination_container-fix-…
Browse files Browse the repository at this point in the history
…free-space-check

Merged by openshift-bot
  • Loading branch information
OpenShift Bot committed Jul 28, 2016
2 parents e501551 + 6f67477 commit c3c1eb9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2416,7 +2416,7 @@ def rsync_destination_container(gear, destination_container, destination_distric

# check here to make sure addition of gear to destination_container
# will not result in > 95% full destination_container
if (destination_avail_space - source_used_blocks.to_i)/destination_total_space > 0.05
if (destination_avail_space - source_used_blocks.to_f)/destination_total_space < 0.05
raise OpenShift::NodeUnavailableException.new("Gear '#{gear.uuid}' cannot be moved to '#{destination_container.id}'. Not enough disk space, node would be > 95% full after move.", 140)
end

Expand Down

0 comments on commit c3c1eb9

Please sign in to comment.