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

Function prettyprint_units

shell/impala_shell/exec_summary.py:117–118  ·  view source on GitHub ↗
(unit_val)

Source from the content-addressed store, hash-verified

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)
119
120 def prettyprint_time(time_val):
121 return prettyprint(time_val, ["ns", "us", "ms", "s"], 1000.0)

Callers 1

build_exec_summary_tableFunction · 0.85

Calls 1

prettyprintFunction · 0.70

Tested by

no test coverage detected