bitkeeper revision 1.1153 (41126318o43x3YiPCk8UwYtIQ4XdtA)

Fixes to the warping mechanism in BVT
This commit is contained in:
gm281@boulderdash.cl.cam.ac.uk committed 2004-08-05 16:40:56 +00:00
1 parent ab6d78ff48
commit 438b8fa221
5 files changed
+31 -23

No files matched your search

+1 -1
View File
@@ -445,7 +445,7 @@ static PyObject *pyxc_bvtsched_domain_set(PyObject *self,
static char *kwd_list[] = { "dom", "mcuadv", "warpback", "warpvalue",
"warpl", "warpu", NULL };
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiiill", kwd_list,
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiiiLL", kwd_list,
&dom, &mcuadv, &warpback, &warpvalue,
&warpl, &warpu) )
return NULL;
+2
View File
@@ -72,6 +72,8 @@ class Args:
try:
if type == 'int':
val = int(v)
elif type == 'long':
val = long(v)
elif type == 'str':
val = str(v)
elif type == 'sxpr':
+2 -2
View File
@@ -112,8 +112,8 @@ class SrvDomain(SrvDir):
['mcuadv', 'int'],
['warpback', 'int'],
['warpvalue', 'int'],
['warpl', 'int'],
['warpu', 'int']])
['warpl', 'long'],
['warpu', 'long']])
val = fn(req.args, {'dom': self.dom.name})
return val
+1 -1
View File
@@ -497,7 +497,7 @@ class ProgBvt(Prog):
def main(self, args):
if len(args) != 7: self.err("%s: Invalid argument(s)" % args[0])
v = map(int, args[1:7])
v = map(long, args[1:7])
server.xend_domain_cpu_bvt_set(*v)
xm.prog(ProgBvt)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.