From: Faiyaz Ahmed <faiyaza@cs.princeton.edu> Date: Tue, 12 Aug 2008 19:16:58 +0000 (+0000) Subject: Round to ints X-Git-Tag: NodeManager-1.8-0~15 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=4dfc713f91b8710cb09616620745b23cba4c5e2f;p=nodemanager.git Round to ints --- 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