From 3ec134864b06600782e22941986f54b4d83534e0 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 25 Dec 2015 20:51:01 +0530 Subject: [PATCH] use bytes not bits for bandwidth --- oml/bandwidth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oml/bandwidth.py b/oml/bandwidth.py index 59dab09..ad7535e 100644 --- a/oml/bandwidth.py +++ b/oml/bandwidth.py @@ -22,8 +22,8 @@ class Bandwidth(object): state.main.call_later(1, self.update) def download(self, amount): - self.down += amount * 8 + self.down += amount def upload(self, amount): - self.up += amount * 8 + self.up += amount