Permalink
Browse files

Fixed typo

  • Loading branch information...
1 parent dc0e760 commit 78ba4f474ca8edf65e4d98f332f9b65ab8e5cb45 @yolk committed Jun 26, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/rucksack/packer.rb
@@ -19,7 +19,8 @@ def self.pack(packed_file)
raw_size = (File.size(packed_file.tmp_file_path)/10.24).round/100.0
packed_size = (File.size(packed_file.file_path)/10.24).round/100.0
- [100 - (packed_size/raw_size)*100).to_i, packed_size]
+ compression_rate = 100 - ((packed_size/raw_size)*100).to_i
+ [compression_rate, packed_size]
end
end

0 comments on commit 78ba4f4

Please sign in to comment.