Skip to content
Browse files

Add human bytes.

  • Loading branch information...
1 parent 49758a1 commit 9dc3ef4ffcf619c0f3399561f207031a3f721206 @drewr committed Nov 8, 2011
Showing with 3 additions and 0 deletions.
  1. +1 −0 bin/shards
  2. +2 −0 lib/es2unix/__init__.py
View
1 bin/shards
@@ -17,6 +17,7 @@ for sh in shards(url):
sh['_status'], \
sh['_primary'], \
sh['_bytes'], \
+ sh['_bytes_hum'], \
sh['_ip'], \
sh['_nodename'] or '', \
sh['_relo'] or ''
View
2 lib/es2unix/__init__.py
@@ -102,6 +102,7 @@ def shards(url):
'_shidx': shidx,
'_primary': primary_p(rep['routing']),
'_bytes': rep['index']['size_in_bytes'],
+ '_bytes_hum': rep['index']['size'],
'_ip': ip(node['transport_address']),
'_node': node,
'_nodename': node['name'],
@@ -114,6 +115,7 @@ def shards(url):
'_shidx': sh['shard'],
'_primary': primary_p(sh),
'_bytes': 0,
+ '_bytes_hum': '0b',
'_ip': 'x.x.x.x',
'_node': None,
'_nodename': None,

0 comments on commit 9dc3ef4

Please sign in to comment.
Something went wrong with that request. Please try again.