diff --git a/lib/mongo/cursor.rb b/lib/mongo/cursor.rb index bbbd39b..9b54172 100644 --- a/lib/mongo/cursor.rb +++ b/lib/mongo/cursor.rb @@ -489,8 +489,8 @@ module Mongo def instrument_payload log = { :database => @db.name, :collection => @collection.name, :selector => selector } log[:fields] = @fields if @fields - log[:skip] = @skip if @skip && (@skip > 0) - log[:limit] = @limit if @limit && (@limit > 0) + log[:skip] = @skip if @skip && (@skip != 0) + log[:limit] = @limit if @limit && (@limit != 0) log[:order] = @order if @order log end