From: Faiyaz Ahmed Date: Wed, 20 Aug 2008 23:33:32 +0000 (+0000) Subject: clean up message template and logging. syntax errors. X-Git-Tag: NodeManager-1.8-0~8 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c78352c484317cab3a1b46faa5040961a0b36c7d;p=nodemanager.git clean up message template and logging. syntax errors. --- diff --git a/bwmon.py b/bwmon.py index 4651e0c..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_maxexemptrate) + 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: