Skip to content

Commit

Permalink
reset bwMem CPU cache lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Palabola committed Sep 2, 2024
1 parent e298482 commit 010c260
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/pages/server-compare/server-compare.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,11 @@ export class ServerCompareComponent implements OnInit, AfterViewInit {
});
});

// reset the annotations
if(this.lineChartOptionsBWMem?.plugins?.annotation) {
this.lineChartOptionsBWMem.plugins.annotation = {};
}

this.lineChartDataBWmem = { labels: chartData.labels, datasets: chartData.datasets };

(this.lineChartOptionsBWMem as any).plugins.tooltip.callbacks.title = function(this: TooltipModel<"line">, tooltipItems: TooltipItem<"line">[]) {
Expand Down
2 changes: 2 additions & 0 deletions src/app/pages/server-details/server-details.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,8 @@ export class ServerDetailsComponent implements OnInit, OnDestroy {
this.lineChartOptionsBWMem.plugins.annotation = {
annotations: annotations
};
} else {
this.lineChartOptionsBWMem.plugins.annotation = {};
}
}

Expand Down

0 comments on commit 010c260

Please sign in to comment.