From 4dfc713f91b8710cb09616620745b23cba4c5e2f Mon Sep 17 00:00:00 2001 From: Faiyaz Ahmed Date: Tue, 12 Aug 2008 19:16:58 +0000 Subject: [PATCH] Round to ints --- bwmon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bwmon.py b/bwmon.py index 59f6234..9d73d8c 100644 --- a/bwmon.py +++ b/bwmon.py @@ -187,9 +187,9 @@ class Slice: self.Maxi2Rate = default_Maxi2Rate self.Mini2Rate = bwlimit.bwmin / 1000 self.MaxKByte = default_MaxKByte - self.ThreshKByte = (.8 * self.MaxKByte) + self.ThreshKByte = int(.8 * self.MaxKByte) self.Maxi2KByte = default_Maxi2KByte - self.Threshi2KByte = (.8 * self.Maxi2KByte) + self.Threshi2KByte = int(.8 * self.Maxi2KByte) self.Share = default_Share self.Sharei2 = default_Share self.emailed = False -- 2.47.0