Permalink
Browse files

always posting

  • Loading branch information...
1 parent d2fb342 commit bbc2437cc7b2e65890eaf5b9dfa7a0835767ea7d Jordan Glasner committed Mar 12, 2010
Showing with 4 additions and 3 deletions.
  1. +3 −2 lib/nimble_nodes/report.rb
  2. +1 −1 nimble_nodes.gemspec
@@ -8,8 +8,8 @@ def self.path
end
def initialize(env)
- @dynos_in_use = env['HTTP_X_HEROKU_DYNOS_IN_USE']
- @request_queue_depth = env['HTTP_X_HEROKU_QUEUE_DEPTH']
+ @dynos_in_use = env['HTTP_X_HEROKU_DYNOS_IN_USE'].to_i
+ @request_queue_depth = env['HTTP_X_HEROKU_QUEUE_DEPTH'].to_i
end
def post
@@ -20,6 +20,7 @@ def post
end
def post?
+ return true
return false if ENV['NN_APP_PAUSED_AT']
dynos_maxed_out? or queue_depth_too_long? or unused_dynos?
end
@@ -5,7 +5,7 @@
Gem::Specification.new do |s|
s.name = %q{nimble_nodes}
- s.version = "0.1.5"
+ s.version = "0.1.6"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Jordan Glasner"]

0 comments on commit bbc2437

Please sign in to comment.