From 27364efa60a97166154238a9f88df8d8c676d79c Mon Sep 17 00:00:00 2001 From: Faiyaz Ahmed Date: Wed, 20 Aug 2008 23:36:41 +0000 Subject: [PATCH] Syntax error in notify function call. Also fixed logging. --- bwmon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bwmon.py b/bwmon.py index 9d73d8c..8f04808 100644 --- 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['new_maxexemptrate'] = bwlimit.format_tc_rate(new_maxi2rate) + params['new_maxrate'] = bwlimit.format_tc_rate(new_maxexemptrate) 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_maxexemptrate)s/s " % params) # Notify slice if message and self.emailed == False: @@ -400,7 +400,7 @@ class Slice: # Notify slice if self.capped == True and self.emailed == False: - self.notify(newmaxrate, newmaxexemptrate, usedbytes, usedi2bytes) + self.notify(new_maxrate, new_maxi2rate, usedbytes, usedi2bytes) def gethtbs(root_xid, default_xid): -- 2.43.0