X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2Findex_rd.php;h=81c05f98a3a0848103a3cc1fe810dcf2693954f9;hb=e469882b494df00aab18f2e38d18c5faa214c740;hp=c027921c794dba9fa29e531cfc5b0d4250216135;hpb=d735a157e2d85d4fa21de7d0639ad0e5b0f756a8;p=brisk.git diff --git a/web/briskin5/index_rd.php b/web/briskin5/index_rd.php index c027921..81c05f9 100644 --- a/web/briskin5/index_rd.php +++ b/web/briskin5/index_rd.php @@ -28,6 +28,12 @@ require_once("../Obj/brisk.phh"); // require_once("../Obj/proxyscan.phh"); require_once("Obj/briskin5.phh"); +$S_load_stat = array( 'U_first_loop' => 0, + 'U_heavy' => 0, + 'R_garbage' => 0, + 'R_minusone' => 0, + 'R_the_end' => 0 ); + // Use of proxies isn't allowed. // if (is_proxy()) { // sleep(5); @@ -87,8 +93,6 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su return (FALSE); } - error_log("maincheck: step di i [".$proxy_step['i']."]", 0); - // log_rd2("M"); /* Sync check (read only without modifications */ ignore_user_abort(TRUE); @@ -148,8 +152,6 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su log_lock("P"); $S_load_stat['U_heavy']++; - // if (($bri = &Bin5::load_data($table_idx, $table_token)) == FALSE) - // if (($user = Bin5_user::load_data($table_idx, $table_token)) == FALSE) if (($user = Bin5_user::load_data($table_idx, $proxy_step['i'], $sess)) == FALSE) { break; } @@ -358,6 +360,12 @@ for ($i = 0 ; time() < $endtime ; $i++) { echo '_'; flush(); } + } + +$s = "[".$sess."] briskin5/index_rd.php stats: "; +foreach ($S_load_stat as $key => $value) { + $s .= sprintf("%s: %d - ", $key, $value); } +log_crit($s); ?>