lib/dropbox/dropbox.rb in dropbox-0.0.7 vs lib/dropbox/dropbox.rb in dropbox-0.0.8

- old
+ new

@@ -153,13 +153,13 @@ :percent => Percentage.new(d[0].to_f/100) } }[0] regular_data = stats_page.at('span.bar-graph-legend.bar-graph-normal').next.content.scan(/\((\d+(?:\.\d+)?)([MG])B/)[0] - stats[:regular_used] = regular_data[0].to_f * ((regular_data[1] == "G") ? 1024 : 1) + stats[:regular_used] = regular_data[0].to_f * ((regular_data[1] == "G") ? 1024 : 1) unless regular_data.nil? shared_data = stats_page.at('span.bar-graph-legend.bar-graph-shared').next.content.scan(/\((\d+(?:\.\d+)?)([MG])B/)[0] - stats[:shared_used] = shared_data[0].to_f * ((shared_data[1] == "G") ? 1024 : 1) + stats[:shared_used] = shared_data[0].to_f * ((shared_data[1] == "G") ? 1024 : 1) unless regular_data.nil? return stats end private