Browse Source

Pass in explicit core count from threads variable

Pinging @kazu-yamamoto does this make sense to you?
Michael Snoyman 11 years ago
parent
commit
062e4f9e53
2 changed files with 2 additions and 2 deletions
  1. 1 1
      frameworks/Haskell/wai/setup.py
  2. 1 1
      frameworks/Haskell/yesod/setup.py

+ 1 - 1
frameworks/Haskell/wai/setup.py

@@ -10,7 +10,7 @@ def start(args, logfile, errfile):
 
   db_host = args.database_host
   threads = str(args.max_threads)
-  subprocess.Popen("dist/build/bench/bench " + threads + " " + db_host + " +RTS -A32m -N", shell=True, cwd="wai/bench", stderr=errfile, stdout=logfile)
+  subprocess.Popen("dist/build/bench/bench " + threads + " " + db_host + " +RTS -A32m -N" + threads, shell=True, cwd="wai/bench", stderr=errfile, stdout=logfile)
   return 0
 
 def stop(logfile, errfile):

+ 1 - 1
frameworks/Haskell/yesod/setup.py

@@ -10,7 +10,7 @@ def start(args, logfile, errfile):
 
   db_host = args.database_host
   threads = str(args.max_threads)
-  subprocess.Popen("dist/build/bench/bench " + threads + " " + db_host + " +RTS -A32M -N", shell=True, cwd="yesod/bench", stderr=errfile, stdout=logfile)
+  subprocess.Popen("dist/build/bench/bench " + threads + " " + db_host + " +RTS -A32M -N" + threads, shell=True, cwd="yesod/bench", stderr=errfile, stdout=logfile)
   return 0
 
 def stop(logfile, errfile):