summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-17 14:21:44 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-17 14:21:44 +0200
commit76b97521f46efa9cce6dfd2f1c4e18cf775ff626 (patch)
treef2bce4914314a661e50260a70296aa2faceedf1a
parent3e4a8910351d0b76a0ee7316df2c42fccdc5b8ad (diff)
downloadgitlab-ci-76b97521f46efa9cce6dfd2f1c4e18cf775ff626.tar.gz
Fixed running condition
-rw-r--r--app/models/project.rb2
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