From 8657990af4b15f3787301c19524098a86ce597b9 Mon Sep 17 00:00:00 2001 From: Newnius Date: Thu, 25 Jun 2020 00:00:27 +0800 Subject: [PATCH] update --- static/job.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/job.js b/static/job.js index 161f821..1822946 100755 --- a/static/job.js +++ b/static/job.js @@ -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']);