From 3d9c559cdba886787354618121ff72ef7f23b742 Mon Sep 17 00:00:00 2001
From: Simone Margaritelli <evilsocket@gmail.com>
Date: Fri, 8 Nov 2019 13:20:14 +0100
Subject: [PATCH] misc: small fix or general refactoring i did not bother
 commenting

---
 pwnagotchi/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pwnagotchi/utils.py b/pwnagotchi/utils.py
index c3ad793..aa68d2b 100644
--- a/pwnagotchi/utils.py
+++ b/pwnagotchi/utils.py
@@ -121,7 +121,7 @@ def load_config(args):
 
 def parse_max_size(s):
     parts = re.findall(r'(^\d+)([bBkKmMgG]?)', s)
-    if len(parts) != 1:
+    if len(parts) != 2:
         raise Exception("can't parse %s as a max size" % s)
 
     num, unit = parts[1]