Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public end(): void {
if (this.interval) {
clearInterval(this.interval);
this.interval = undefined;
}
pidusage.clear();
}