Author: eallen
Date: 2008-11-24 14:25:16 -0500 (Mon, 24 Nov 2008)
New Revision: 2873
Modified:
mgmt/trunk/cumin/python/cumin/limits.py
mgmt/trunk/cumin/python/cumin/model.py
Log:
Don't convert the limits to strings. Pass them as floats.
Modified: mgmt/trunk/cumin/python/cumin/limits.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/limits.py 2008-11-24 19:13:14 UTC (rev 2872)
+++ mgmt/trunk/cumin/python/cumin/limits.py 2008-11-24 19:25:16 UTC (rev 2873)
@@ -207,7 +207,7 @@
def process_submit(self, session, *args):
max = self.max.get(session)
- imax = 0
+ fmax = 0
errors = False
try:
fmax = float(max)
@@ -221,7 +221,7 @@
if not errors:
limit = args[0]
- limit.max = imax
+ limit.max = fmax
self.frame.set_limit(session, limit)
self.process_cancel(session, *args)
Modified: mgmt/trunk/cumin/python/cumin/model.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/model.py 2008-11-24 19:13:14 UTC (rev 2872)
+++ mgmt/trunk/cumin/python/cumin/model.py 2008-11-24 19:25:16 UTC (rev 2873)
@@ -2118,7 +2118,8 @@
def do_invoke(self, limit, negotiator, completion):
Name = limit.id
Max = limit.max
- negotiator.SetLimit(self.model.data, completion, Name, str(Max))
+ negotiator.SetLimit(self.model.data, completion, Name, Max)
+ #negotiator.SetLimit(self.model.data, completion, Name, str(Max))
class CuminJobGroup(CuminClass):
def __init__(self, model):