bug #469: Bug setting xen scheduler credits

(cherry picked from commit cf62e17bf0)
This commit is contained in:
Javi Fontan committed 2011-01-20 12:51:16 +01:00
1 parent 2247ceab5c
commit ca6f5ed215
1 file changed
+2 -2
+2 -2
View File
@@ -38,10 +38,10 @@ domain_name=`echo $output | grep 'Started domain' | sed 's/^.*Started domain //'
out=`grep -e '^\#O CPU_CREDITS =' < $domain`
if [ "x$?" != "x0" ]; then
if [ "x$?" = "x0" ]; then
credits=`echo $out | cut -d= -f2 | tr -d ' '`
name=`grep -e '^name =' < $domain | cut -d= -f2 | tr -d ' '`
name=`grep -e '^name =' < $domain | cut -d= -f2 | tr -d ' ' | tr -d "\'"`
$XM_CREDITS -d $name -w $credits