Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib/statsd/graphite.rb use of round #2

Open
rberger opened this issue Jun 26, 2011 · 0 comments
Open

lib/statsd/graphite.rb use of round #2

rberger opened this issue Jun 26, 2011 · 0 comments

Comments

@rberger
Copy link

rberger commented Jun 26, 2011

Looks like lib/statsd/graphite.rb has a dependency on 1.9.2 that isn't particularly necessary at line 86:

puts "complete. (#{time.round(3)}s)"

Causes the problem:

Uncaught exception wrong number of arguments (1 for 0)
/usr/lib/ruby/gems/1.8/gems/statsd-0.5.4/lib/statsd/graphite.rb:86:in `round'

Due to passing an argument to round which it seems that 1.8.7 version doesn't have.

I see that noahhl forked and changed that to

      puts "complete. (#{(time*100).round()/100.0}s)"

Thanks!

adamgibbins added a commit to adamgibbins/statsd that referenced this issue May 21, 2012
Oscil8 referenced this issue in Oscil8/statsd May 14, 2013
Fix Gemfile, prefix handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant