mirror of
https://github.com/newnius/YAO-portal.git
synced 2025-06-07 07:31:56 +00:00
update
This commit is contained in:
parent
3f18c36868
commit
8657990af4
@ -90,8 +90,8 @@ function register_events_job() {
|
|||||||
console.log(res);
|
console.log(res);
|
||||||
|
|
||||||
$('#form-job-tasks').find('.row').each(function () {
|
$('#form-job-tasks').find('.row').each(function () {
|
||||||
if ((role === 'PS' && $(this).find('.task-cpu').eq(0).val() === 1)
|
if ((role === 'PS' && $(this).find('.task-is-ps').eq(0).val() === 1)
|
||||||
|| (role === 'Worker' && $(this).find('.task-cpu').eq(0).val() === 0)) {
|
|| (role === 'Worker' && $(this).find('.task-is-ps').eq(0).val() === 0)) {
|
||||||
$(this).find('.task-cpu').eq(0).val(res['cpu']);
|
$(this).find('.task-cpu').eq(0).val(res['cpu']);
|
||||||
$(this).find('.task-mem').eq(0).val(res['mem']);
|
$(this).find('.task-mem').eq(0).val(res['mem']);
|
||||||
$(this).find('.task-gpu-mem').eq(0).val(res['gpu_mem']);
|
$(this).find('.task-gpu-mem').eq(0).val(res['gpu_mem']);
|
||||||
|
Loading…
Reference in New Issue
Block a user