From 1f950e8e43c6079c1f890fc18550f72b657126a3 Mon Sep 17 00:00:00 2001 From: Faiyaz Ahmed Date: Tue, 5 Dec 2006 16:46:58 +0000 Subject: [PATCH] Remove slice email notification. (commented. will remove notification code after testing) --- bwmon.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/bwmon.py b/bwmon.py index 2410b7d..4a828a8 100755 --- 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 - 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: - 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), -- 2.43.0