Skip to content

Commit

Permalink
added user counts
Browse files Browse the repository at this point in the history
  • Loading branch information
derailed committed Jan 3, 2010
1 parent 95622de commit bc88de1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/mongo3/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def show( path_names )
info[:links][:users] = "/users/1" unless slave
info[:name] = zone
info[:host] = con.host
info[:users] = con.db('admin')[Mongo::DB::SYSTEM_USER_COLLECTION].count rescue 0
info[:port] = con.port
info[:databases] = OrderedHash.new
con.database_info.sort { |a,b| b[1] <=> a[1] }.each { |e| info[:databases][e[0]] = to_mb( e[1] ) }
Expand Down

0 comments on commit bc88de1

Please sign in to comment.