summaryrefslogtreecommitdiff
path: root/app/client/system
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-22 15:41:18 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-22 15:41:18 +0200
commit30bd4e1ea0b84759306731cacd2ed438f109a79b (patch)
tree5d029b0b9b48df429ea604cd93a793381dedf6d5 /app/client/system
parent5282e830c65ed9bce13a0cdbe5b6a464c43b1394 (diff)
runnnerrrrrr
Diffstat (limited to 'app/client/system')
-rw-r--r--app/client/system/system.reducer.js4
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