mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-20 13:00:51 -07:00
Fix issue identified in review <https://info.ravenbrook.com/mail/2018/09/22/11-42-19/0/>
Copied from Perforce Change: 195139
This commit is contained in:
parent
8c14e1a600
commit
ec70bbf11a
1 changed files with 1 additions and 2 deletions
|
|
@ -176,8 +176,7 @@ def telemetry_decoder(read):
|
|||
|
||||
|
||||
# SI_PREFIX[i] is the SI prefix for 10 to the power of 3(i-8).
|
||||
SI_PREFIX = list('yzafpnµm kMGTPEZY')
|
||||
SI_PREFIX[8] = ''
|
||||
SI_PREFIX = list('yzafpnµm') + [''] + list('kMGTPEZY')
|
||||
|
||||
def with_SI_prefix(y, precision=5, unit=''):
|
||||
"Turn the number y into a string using SI prefixes followed by unit."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue