diff --git a/jupyter_resource_usage/static/main.js b/jupyter_resource_usage/static/main.js index 0a1e6f5..8349037 100644 --- a/jupyter_resource_usage/static/main.js +++ b/jupyter_resource_usage/static/main.js @@ -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'];