فهرست منبع

Fixed bug where number of records was the same as number of lines loaded for the bulk loader -now it's actually the number of records

Lacey Sanderson 12 سال پیش
والد
کامیت
1a68c8417b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      tripal_bulk_loader/tripal_bulk_loader.module

+ 1 - 1
tripal_bulk_loader/tripal_bulk_loader.module

@@ -487,7 +487,7 @@ function tripal_bulk_loader_progess_file_get_progress($job_id, $update_progress
   }
 
   $num_lines = trim(`wc --lines < $filename`);
-  $num_records = trim(`grep -c "." $filename`);
+  $num_records = trim(`grep -o "." $filename | wc --lines`);
 
   $job = db_fetch_object(db_query("SELECT j.*, b.file, b.file_has_header, c.num as num_constant_sets
                               FROM {tripal_jobs} j