fix bug: batch_name

svn path=/trunk/boinc/; revision=25390
This commit is contained in:
Wenjing Wu 2012-03-07 02:36:55 +00:00
parent 1ec99e50f4
commit 9c3e4b76f0
1 changed files with 2 additions and 2 deletions

View File

@ -291,7 +291,7 @@ function prepare_batch($user) {
system("rm *");
$info->rsc_fpops_est = $est_cpu_time * 5e9;
$info->rsc_fpops_bound = $rsc_fpops_est * 20;
$info->rsc_fpops_bound = $info->rsc_fpops_est * 20;
$info->rsc_disk_bound = $disk;
@ -354,7 +354,7 @@ function submit_batch($user, $app) {
}
$now = time();
$batch_name = $info->area."_".date("Y-M-d H:m:s");
$batch_name = $info->area."_".date("Y-M-d D H:i:s");
$batch_id = BoincBatch::insert(
"(user_id, create_time, njobs, name, app_id, state) values ($user->id, $now, $njobs, '$batch_name', $app->id, ".BATCH_STATE_IN_PROGRESS.")"