diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-05 04:12:42 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-05 04:12:42 +0200 |
| commit | 55c1e265e8b274ee73c6e1b9e9a59cb44db7fe84 (patch) | |
| tree | c74ba0c9b4be4875d4d4b21336be2a33a3d9edb9 /app/client/system/system.reducer.js | |
| parent | 8637ba895d2f8f249734076fea6d8a7e29b336cd (diff) | |
fetch task worksssssss
Diffstat (limited to 'app/client/system/system.reducer.js')
| -rw-r--r-- | app/client/system/system.reducer.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/client/system/system.reducer.js b/app/client/system/system.reducer.js index c20bf93..132923b 100644 --- a/app/client/system/system.reducer.js +++ b/app/client/system/system.reducer.js @@ -175,10 +175,10 @@ const systemReducer = (state = systemInitialState, action) => { stderr: "", } case types.task.task_finish: - if (state.runner.cpu.task.uuid === action.task.uuid) { + if (action.task === 'cpu' || state.runner.cpu.task.uuid === action.task.uuid) { processor = 'cpu' } - else if (state.runner.gpu.task.uuid === action.task.uuid) { + else if (action.task === 'gpu' || state.runner.gpu.task.uuid === action.task.uuid) { processor = 'gpu' } else { processor = null |
