git://git.onelab.eu
/
mom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
288b66d
)
Remove slice email notification. (commented. will remove notification code after...
author
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Tue, 5 Dec 2006 16:46:58 +0000
(16:46 +0000)
committer
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Tue, 5 Dec 2006 16:46:58 +0000
(16:46 +0000)
bwmon.py
patch
|
blob
|
history
diff --git
a/bwmon.py
b/bwmon.py
index
2410b7d
..
4a828a8
100755
(executable)
--- a/
bwmon.py
+++ b/
bwmon.py
@@
-244,13
+244,13
@@
class Slice:
bwlimit.set(xid = self.xid, maxrate = new_maxrate, maxexemptrate = new_maxexemptrate)
# Notify slice
bwlimit.set(xid = self.xid, maxrate = new_maxrate, maxexemptrate = new_maxexemptrate)
# Notify slice
- if message:
-
subject = "pl_mom capped bandwidth of slice %(slice)s on %(hostname)s" % params
-
if debug:
-
print subject
-
print message + (footer % params)
-
else:
-
slicemail(self.name, subject, message + (footer % params))
+
#
if message:
+
#
subject = "pl_mom capped bandwidth of slice %(slice)s on %(hostname)s" % params
+
#
if debug:
+
#
print subject
+
#
print message + (footer % params)
+
#
else:
+
#
slicemail(self.name, subject, message + (footer % params))
@@
-336,8
+336,8
@@
def main():
live.append(xid)
if verbose:
live.append(xid)
if verbose:
- print("\nRunning stats for %s"\
- "\n
minrate %s, maxrate %s, minexemptrate %s,"\
+ print("\nRunning stats for %s
from tc.
"\
+ "\nminrate %s, maxrate %s, minexemptrate %s,"\
" maxexemptrate %s, bytes %s, exemptbytes %s" % \
(bwlimit.get_slice(xid),
bwlimit.format_tc_rate(minrate),
" maxexemptrate %s, bytes %s, exemptbytes %s" % \
(bwlimit.get_slice(xid),
bwlimit.format_tc_rate(minrate),