From 7199805c89099efa185d447f6a435ea2bdadf31d Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 27 Nov 2023 16:52:03 +0000 Subject: [Common] Fix order of size_units for parse_human_size The previous commit changed the order of the size --- deluge/common.py | 10 +++++----- 1 file 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}, -- cgit v1.2.3