Skip to content

Commit

Permalink
fix: fixes cpu monitor when all values are 0. fixes #2215 (#2222)
Browse files Browse the repository at this point in the history
* fix: fixes cpu monitor when all values are 0. fixes #2215

* chore: remove unused imports
  • Loading branch information
amir20 committed May 26, 2023
1 parent cc7d834 commit 3d93bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/components/LogViewer/StatSparkline.vue
Expand Up @@ -28,7 +28,7 @@ const shape = d3
const path = computed(() => {
x.domain(d3.extent(data, (d) => d.x) as [number, number]);
y.domain(d3.extent(data, (d) => d.y) as [number, number]);
y.domain(d3.extent([...data, { y: 1 }], (d) => d.y) as [number, number]);
return shape(data) ?? "";
});
Expand Down

0 comments on commit 3d93bb6

Please sign in to comment.