changeset 1934:3d54a6c26caa draft

fix w->size calc
author Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
date Sat, 01 Feb 2014 21:08:43 +0900
parents d7f1710e0070
children e8ca9cae59fc e5b4e61b6f85
files example/regex_mas/bigfile.pl example/regex_mas/main.cc
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/example/regex_mas/bigfile.pl	Sat Feb 01 20:44:06 2014 +0900
+++ b/example/regex_mas/bigfile.pl	Sat Feb 01 21:08:43 2014 +0900
@@ -20,7 +20,7 @@
 print "original file size : $original_filesize\n";
 print "make     file name : $make_filename\n";
 print "make     file size : $make_filesize\n";
-print "make file size(GB) : $make_filesize\n";
+print "make file size(GB) : $ARGV[2] GB\n";
 
 while ($loop_counter < $loop_num) {
     $exec_result = `cat $original_filename >> $make_filename`;
--- a/example/regex_mas/main.cc	Sat Feb 01 20:44:06 2014 +0900
+++ b/example/regex_mas/main.cc	Sat Feb 01 21:08:43 2014 +0900
@@ -184,7 +184,7 @@
                 h_exec->set_cpu(spe_cpu);
                 h_exec->spawn();
             }
-            w->size -= size;
+            w->size -= w->division_size;
             w->task_num--;
         }
         if (use_task_array) {