diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-22 15:41:18 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-22 15:41:18 +0200 |
| commit | 30bd4e1ea0b84759306731cacd2ed438f109a79b (patch) | |
| tree | 5d029b0b9b48df429ea604cd93a793381dedf6d5 /app/client/system/system.reducer.js | |
| parent | 5282e830c65ed9bce13a0cdbe5b6a464c43b1394 (diff) | |
runnnerrrrrr
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 b648053..387b454 100644 --- a/app/client/system/system.reducer.js +++ b/app/client/system/system.reducer.js @@ -188,10 +188,10 @@ const systemReducer = (state = systemInitialState, action) => { stderr: "", } case types.task.task_finish: - if (action.task === 'cpu' || (state.runner.cpu.task && action.task && state.runner.cpu.task.uuid === action.task.uuid)) { + if (action.task.processor === 'cpu' || (state.runner.cpu.task && state.runner.cpu.task.uuid === action.task.uuid)) { processor = 'cpu' } - else if (action.task === 'gpu' || (state.runner.gpu.task && action.task && state.runner.gpu.task.uuid === action.task.uuid)) { + else if (action.task.processor === 'gpu' || (state.runner.gpu.task && state.runner.gpu.task.uuid === action.task.uuid)) { processor = 'gpu' } else { processor = null |
