Commit 9415a48
Test explicitely if cpuPercent is defined. If not, the key 'cpu_percent' didn't exist in the 'data'. Previously, the update would not only be skipped if the key didn't exist, but _also_ if the cpuPercent was zero, which would result in the CPU usage only being updated _during_ execution of a cell (when CPU usage is non-zero), and it would never return to zero afterwards
1 parent f0a175f commit 9415a48
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
0 commit comments