summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2023-11-27 17:52:03 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2023-11-27 17:52:03 +0100
commit7199805c89099efa185d447f6a435ea2bdadf31d (patch)
tree7d84acb9870f1b9b5bc7b9063114ec9ce4dc06ae
parent[Common] Add extra size units suffixes for user input (diff)
downloaddeluge-7199805c89099efa185d447f6a435ea2bdadf31d.tar.xz
deluge-7199805c89099efa185d447f6a435ea2bdadf31d.zip
[Common] Fix order of size_units for parse_human_size
The previous commit changed the order of the size
-rw-r--r--deluge/common.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/deluge/common.py b/deluge/common.py
index f404fde01..be655447f 100644
--- a/deluge/common.py
+++ b/deluge/common.py
@@ -663,16 +663,16 @@ def tokenize(text):
size_units = [
{'prefix': 'b', 'divider': 1, 'singular': 'byte', 'plural': 'bytes'},
- {'prefix': 'k', 'divider': 1000**1},
- {'prefix': 'm', 'divider': 1000**2},
- {'prefix': 'g', 'divider': 1000**3},
- {'prefix': 't', 'divider': 1000**4},
- {'prefix': 'p', 'divider': 1000**5},
{'prefix': 'KiB', 'divider': 1024**1},
{'prefix': 'MiB', 'divider': 1024**2},
{'prefix': 'GiB', 'divider': 1024**3},
{'prefix': 'TiB', 'divider': 1024**4},
{'prefix': 'PiB', 'divider': 1024**5},
+ {'prefix': 'k', 'divider': 1000**1},
+ {'prefix': 'm', 'divider': 1000**2},
+ {'prefix': 'g', 'divider': 1000**3},
+ {'prefix': 't', 'divider': 1000**4},
+ {'prefix': 'p', 'divider': 1000**5},
{'prefix': 'KB', 'divider': 1000**1},
{'prefix': 'MB', 'divider': 1000**2},
{'prefix': 'GB', 'divider': 1000**3},