aboutsummaryrefslogtreecommitdiff
path: root/src/ee/formatting
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2017-09-22 08:15:28 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2017-09-22 14:14:55 +0200
commitaeb51e89c1103836b2fd991a0ac789354465b55e (patch)
treee9b4b70f21a9e7f80bd3f667fc31f10b5f96f47b /src/ee/formatting
parent21972f97987d239c0bd924c090ede852a0427bec (diff)
downloadee-python-aeb51e89c1103836b2fd991a0ac789354465b55e.tar.gz
ee-python-aeb51e89c1103836b2fd991a0ac789354465b55e.tar.bz2
ee-python-aeb51e89c1103836b2fd991a0ac789354465b55e.tar.xz
ee-python-aeb51e89c1103836b2fd991a0ac789354465b55e.zip
o Properly implementing EeVal as a value parser. Still missing units.
Diffstat (limited to 'src/ee/formatting')
-rw-r--r--src/ee/formatting/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ee/formatting/__init__.py b/src/ee/formatting/__init__.py
index c2b5688..4527a96 100644
--- a/src/ee/formatting/__init__.py
+++ b/src/ee/formatting/__init__.py
@@ -72,7 +72,7 @@ def eng_str(value, unit=None):
s = '0' + (' ' + unit if unit is not None else '')
else:
big = ['k', 'M', 'G', 'T']
- small = ['m', 'u', 'p']
+ small = ['m', 'u', 'n', 'p']
if unit is not None:
big = [' ' + unit] + [' ' + x + unit for x in big]