mirror of https://github.com/BOINC/boinc.git
fix bug: batch_name
svn path=/trunk/boinc/; revision=25390
This commit is contained in:
parent
1ec99e50f4
commit
9c3e4b76f0
|
@ -291,7 +291,7 @@ function prepare_batch($user) {
|
||||||
|
|
||||||
system("rm *");
|
system("rm *");
|
||||||
$info->rsc_fpops_est = $est_cpu_time * 5e9;
|
$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;
|
$info->rsc_disk_bound = $disk;
|
||||||
|
|
||||||
|
@ -354,7 +354,7 @@ function submit_batch($user, $app) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$now = time();
|
$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(
|
$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.")"
|
"(user_id, create_time, njobs, name, app_id, state) values ($user->id, $now, $njobs, '$batch_name', $app->id, ".BATCH_STATE_IN_PROGRESS.")"
|
||||||
|
|
Loading…
Reference in New Issue