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:
894c1d9
)
Syntax error in notify function call. Also fixed logging.
author
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Wed, 20 Aug 2008 23:36:41 +0000
(23:36 +0000)
committer
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Wed, 20 Aug 2008 23:36:41 +0000
(23:36 +0000)
bwmon.py
patch
|
blob
|
history
diff --git
a/bwmon.py
b/bwmon.py
index
9d73d8c
..
8f04808
100644
(file)
--- a/
bwmon.py
+++ b/
bwmon.py
@@
-330,10
+330,10
@@
class Slice:
params['class'] = "high bandwidth"
params['bytes'] = format_bytes(usedi2bytes - self.i2bytes)
params['limit'] = format_bytes(self.Maxi2KByte * 1024)
params['class'] = "high bandwidth"
params['bytes'] = format_bytes(usedi2bytes - self.i2bytes)
params['limit'] = format_bytes(self.Maxi2KByte * 1024)
- params['new_max
exemptrate'] = bwlimit.format_tc_rate(new_maxi2
rate)
+ params['new_max
rate'] = bwlimit.format_tc_rate(new_maxexempt
rate)
message += template % params
message += template % params
- logger.log("bwmon: ** %(slice)s %(class)s capped at %(new_maxrate)s/s " % params)
+ logger.log("bwmon: ** %(slice)s %(class)s capped at %(new_max
exempt
rate)s/s " % params)
# Notify slice
if message and self.emailed == False:
# Notify slice
if message and self.emailed == False:
@@
-400,7
+400,7
@@
class Slice:
# Notify slice
if self.capped == True and self.emailed == False:
# Notify slice
if self.capped == True and self.emailed == False:
- self.notify(new
maxrate, newmaxexempt
rate, usedbytes, usedi2bytes)
+ self.notify(new
_maxrate, new_maxi2
rate, usedbytes, usedi2bytes)
def gethtbs(root_xid, default_xid):
def gethtbs(root_xid, default_xid):