diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-17 14:21:44 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-17 14:21:44 +0200 |
commit | 76b97521f46efa9cce6dfd2f1c4e18cf775ff626 (patch) | |
tree | f2bce4914314a661e50260a70296aa2faceedf1a | |
parent | 3e4a8910351d0b76a0ee7316df2c42fccdc5b8ad (diff) | |
download | gitlab-ci-76b97521f46efa9cce6dfd2f1c4e18cf775ff626.tar.gz |
Fixed running condition
-rw-r--r-- | app/models/project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index cbb602e..f3540fc 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -127,7 +127,7 @@ class Project < ActiveRecord::Base def no_running_builds? # Get running builds not later than 3 days ago to ignore hungs - builds.running.where("updated_at < ?", 3.days.ago).empty? + builds.running.where("updated_at > ?", 3.days.ago).empty? end end |