diff options
author | Eric Wong <e@80x24.org> | 2017-01-31 01:56:36 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-01-31 01:56:36 +0000 |
commit | 464d874a17a958407d769164bd7683b9f6db38c4 (patch) | |
tree | d98a52cfc086125acf7af4a391c05d54f76f85f4 /lib/mogilefs/paths_size.rb | |
parent | a251cba43a0c24a7aa04b1baf3421ba6f7bf6cda (diff) | |
download | mogilefs-client-464d874a17a958407d769164bd7683b9f6db38c4.tar.gz |
This should reduce the amount of garbage we produce and keep the process leaner and meaner.
Diffstat (limited to 'lib/mogilefs/paths_size.rb')
-rw-r--r-- | lib/mogilefs/paths_size.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mogilefs/paths_size.rb b/lib/mogilefs/paths_size.rb index ba61f9e..0aa676d 100644 --- a/lib/mogilefs/paths_size.rb +++ b/lib/mogilefs/paths_size.rb @@ -10,7 +10,7 @@ module MogileFS::PathsSize begin case r = Net::HTTP.start(uri.host, uri.port) { |x| x.head(uri.path) } when Net::HTTPOK - return r["Content-Length"].to_i + return r['Content-Length'.freeze].to_i else errors[path] = r end |