git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87f01a0
)
Round to ints
author
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Tue, 12 Aug 2008 19:16:58 +0000
(19:16 +0000)
committer
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Tue, 12 Aug 2008 19:16:58 +0000
(19:16 +0000)
bwmon.py
patch
|
blob
|
history
diff --git
a/bwmon.py
b/bwmon.py
index
59f6234
..
9d73d8c
100644
(file)
--- 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