@@ -677,7 +677,7 @@ function handle_query_batch($user) {
677677 $ owner = BoincUser::lookup_id ($ batch ->user_id );
678678 }
679679
680- $ is_assim_move = is_assim_move ($ app );
680+ $ is_batch_collect = is_batch_collect ($ app );
681681
682682 page_head ("Batch $ batch_id " );
683683 text_start (800 );
@@ -708,15 +708,15 @@ function handle_query_batch($user) {
708708 }
709709 row2 ("GFLOP/hours, estimated " , number_format (credit_to_gflop_hours ($ batch ->credit_estimate ), 2 ));
710710 row2 ("GFLOP/hours, actual " , number_format (credit_to_gflop_hours ($ batch ->credit_canonical ), 2 ));
711- if (!$ is_assim_move ) {
711+ if (!$ is_batch_collect ) {
712712 row2 ("Total size of output files " ,
713713 size_string (batch_output_file_size ($ batch ->id ))
714714 );
715715 }
716716 end_table ();
717717
718718 echo "<p> " ;
719- if ($ is_assim_move ) {
719+ if ($ is_batch_collect ) {
720720 //if (is_batch_gzipped($wus)) {
721721 if (true ) {
722722 $ url = "get_output3.php?action=get_batch_tar&batch_id= $ batch ->id " ;
@@ -824,16 +824,15 @@ function handle_query_batch($user) {
824824 page_tail ();
825825}
826826
827- // Does the assimilator for the given app move output files
828- // to a results/<batchid>/ directory?
827+ // Does the app use the batch-collect paradigm?
829828// This info is stored in the $remote_apps data structure in project.inc
830829//
831- function is_assim_move ($ app ) {
830+ function is_batch_collect ($ app ) {
832831 global $ remote_apps ;
833832 foreach ($ remote_apps as $ category => $ apps ) {
834833 foreach ($ apps as $ web_app ) {
835834 if ($ web_app ->app_name == $ app ->name ) {
836- return $ web_app ->is_assim_move ;
835+ return $ web_app ->batch_collect ;
837836 }
838837 }
839838 }
@@ -848,7 +847,7 @@ function handle_query_job($user) {
848847 if (!$ wu ) error_page ("no such job " );
849848
850849 $ app = BoincApp::lookup_id ($ wu ->appid );
851- $ is_assim_move = is_assim_move ($ app );
850+ $ is_batch_collect = is_batch_collect ($ app );
852851
853852 page_head ("Job ' $ wu ->name ' " );
854853
@@ -886,13 +885,15 @@ function handle_query_job($user) {
886885 $ result ->priority
887886 ];
888887 $ files = [];
889- if ($ is_assim_move ) {
888+ if ($ is_batch_collect ) {
890889 if ($ result ->id == $ wu ->canonical_resultid ) {
891890 [$ log_names , $ gzip ] = get_outfile_log_names ($ result );
892891 $ nfiles = count ($ log_names );
893892 for ($ i =0 ; $ i <$ nfiles ; $ i ++) {
894893 $ name = $ log_names [$ i ];
895- $ path = assim_move_outfile_path ($ wu , $ i , $ log_names , $ gzip );
894+ $ path = batch_collect_outfile_path (
895+ $ wu , $ i , $ log_names , $ gzip
896+ );
896897 if (file_exists ($ path )) {
897898 $ y = sprintf ('%s (%s): ' ,
898899 $ name , size_string (filesize ($ path ))
0 commit comments