Permalink
Browse files

More precision w/larger units

  • Loading branch information...
1 parent 1fadd19 commit 968da559f6aa4cfca344fd044107e337b4970b33 @itsderek23 itsderek23 committed Mar 21, 2013
Showing with 4 additions and 4 deletions.
  1. +1 −1 mongo_database_stats/mongo_database_stats.rb
  2. +3 −3 mongo_database_stats/mongo_database_stats.yml
@@ -84,9 +84,9 @@ def get_stats
stats = @db.stats
report(:objects => stats['objects'])
+ report(:indexes => stats['indexes'])
report(:data_size => as_mb(stats['dataSize']))
report(:storage_size => as_mb(stats['storageSize']))
- report(:indexes => stats['indexes'])
report(:index_size => as_mb(stats['indexSize']))
end
@@ -4,15 +4,15 @@ metadata:
label: Indexes
index_size:
units: MB
- precision: "0"
+ precision: "2"
label: Size of Index
storage_size:
units: MB
- precision: "0"
+ precision: "2"
label: Size of Storage
data_size:
units: MB
- precision: "0"
+ precision: "2"
label: Size of Data
objects:
units: ""

0 comments on commit 968da55

Please sign in to comment.