Skip to content

Commit

Permalink
[Common] Fix order of size_units for parse_human_size
Browse files Browse the repository at this point in the history
The previous commit changed the order of the size
  • Loading branch information
cas-- committed Nov 27, 2023
1 parent 29cf725 commit 7199805
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions deluge/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 7199805

Please sign in to comment.