From 539be29c44b46e1c7b5c501bd0bc896503f99422 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20K=C3=A1cha?= <ph@cesnet.cz>
Date: Mon, 19 Nov 2018 11:00:26 +0100
Subject: [PATCH] Fix unit multipliers

---
 flowmon-ads/warden3_flowmon_ads_filer.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/flowmon-ads/warden3_flowmon_ads_filer.py b/flowmon-ads/warden3_flowmon_ads_filer.py
index f62913a..3dde2e2 100755
--- a/flowmon-ads/warden3_flowmon_ads_filer.py
+++ b/flowmon-ads/warden3_flowmon_ads_filer.py
@@ -199,12 +199,12 @@ detail_regexps = {
 
 unit_translate = {
     'b': 1,
-    'kib': 1000,
-    'mib': 1000**2,
-    'gib': 1000**3,
-    'kb': 1024,
-    'mb': 1024**2,
-    'gb': 1024**3
+    'kb': 1000,
+    'mb': 1000**2,
+    'gb': 1000**3,
+    'kib': 1024,
+    'mib': 1024**2,
+    'gib': 1024**3
 }
 
 def parse_detail(e):
-- 
GitLab