1
0
mirror of https://github.com/newnius/YAO-portal.git synced 2025-06-06 07:11:54 +00:00
This commit is contained in:
Newnius 2020-06-25 00:00:27 +08:00
parent 3f18c36868
commit 8657990af4

View File

@ -90,8 +90,8 @@ function register_events_job() {
console.log(res);
$('#form-job-tasks').find('.row').each(function () {
if ((role === 'PS' && $(this).find('.task-cpu').eq(0).val() === 1)
|| (role === 'Worker' && $(this).find('.task-cpu').eq(0).val() === 0)) {
if ((role === 'PS' && $(this).find('.task-is-ps').eq(0).val() === 1)
|| (role === 'Worker' && $(this).find('.task-is-ps').eq(0).val() === 0)) {
$(this).find('.task-cpu').eq(0).val(res['cpu']);
$(this).find('.task-mem').eq(0).val(res['mem']);
$(this).find('.task-gpu-mem').eq(0).val(res['gpu_mem']);