Skip to content

Commit 186b1fa

Browse files
authored
Merge pull request #147 from casparvl/fix_updates_at_zero_cpu
Fix update at zero cpu
2 parents f0a175f + 9415a48 commit 186b1fa

File tree

1 file changed

+1
-1
lines changed
  • jupyter_resource_usage/static

1 file changed

+1
-1
lines changed

jupyter_resource_usage/static/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ define([
7474

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

0 commit comments

Comments
 (0)