MCPcopy Create free account
hub / github.com/apache/impala / prettyprint_bytes

Function prettyprint_bytes

shell/impala_shell/exec_summary.py:114–115  ·  view source on GitHub ↗
(byte_val)

Source from the content-addressed store, hash-verified

112 val /= divisor
113
114 def prettyprint_bytes(byte_val):
115 return prettyprint(byte_val, [' B', ' KB', ' MB', ' GB', ' TB'], 1024.0)
116
117 def prettyprint_units(unit_val):
118 return prettyprint(unit_val, ["", "K", "M", "B"], 1000.0)

Callers 1

build_exec_summary_tableFunction · 0.70

Calls 1

prettyprintFunction · 0.70

Tested by

no test coverage detected