فهرست منبع

Provide a default for blast_threads so that users who upgrade don't have broken blast runs until they update their admin preferences.

Lacey Sanderson 10 سال پیش
والد
کامیت
f540948e0b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      api/blast_ui.api.inc

+ 1 - 1
api/blast_ui.api.inc

@@ -178,7 +178,7 @@ function run_BLAST_tripal_job($program, $query, $database, $output_filestub, $op
   // Allow administrators to use an absolute path for these commands.
   // Defaults to using $PATH.
 	$blast_path    = variable_get('blast_path', '');
-	$blast_threads = variable_get('blast_threads', '');
+	$blast_threads = variable_get('blast_threads', 1);
 	
 	// Strip the extension off the BLAST target
 	$database = preg_replace("/(.*)\.[pn]\w\w/", '$1', $database);