Permalink
Browse files

Now doing full count when doing count using next_tokens. Wasn't doing…

… the repetive count before.
  • Loading branch information...
1 parent fc57732 commit c1ee182460b804e902b8814db07b338d1ba144ae @treeder treeder committed Jul 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/simple_record/active_sdb.rb
@@ -418,7 +418,7 @@ def sql_select(options) # :nodoc:
total_count = 0
total_box_usage = 0
query_result = self.connection.select(select_expression, options) do |result|
- puts 'result=' + result.inspect
+ #puts 'result=' + result.inspect
total_count += result[:items][0]["Domain"]["Count"][0].to_i # result.delete(:items)[0]["Domain"]["Count"][0].to_i
total_box_usage += result[:box_usage].to_i
true #continue loop

0 comments on commit c1ee182

Please sign in to comment.