Skip to content

Commit

Permalink
Merge pull request #147 from casparvl/fix_updates_at_zero_cpu
Browse files Browse the repository at this point in the history
Fix update at zero cpu
  • Loading branch information
jtpio authored Oct 3, 2022
2 parents f0a175f + 9415a48 commit 186b1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_resource_usage/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ define([

// Handle CPU display
var cpuPercent = data['cpu_percent'];
if (cpuPercent) {
if (cpuPercent !== undefined) {
// Remove hide CSS class if the metrics API gives us a CPU percent to display
$('#jupyter-resource-usage-display-cpu').removeClass('jupyter-resource-usage-hide');
var maxCpu = data['cpu_count'];
Expand Down

0 comments on commit 186b1fa

Please sign in to comment.