Need to be able to retrieve per-CPU values.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 30 Oct 2008 22:45:15 +0000 (22:45 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 30 Oct 2008 22:45:15 +0000 (22:45 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2811 94cd875c-1c1d-0410-91d2-eb244daf1a30

python/_libvserver.c

index bb7a3b2..dfba4e6 100644 (file)
@@ -785,7 +785,7 @@ pyvserver_get_sched(PyObject UNUSED *self, PyObject *args)
   xid_t xid;
   struct vc_set_sched sched;
 
-  if (!PyArg_ParseTuple(args, "I", &xid))
+  if (!PyArg_ParseTuple(args, "Iii", &xid, &sched.cpu_id, &sched.bucket_id))
     return NULL;
 
   if (vc_get_sched(xid, &sched) == -1)