Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

fix: Correction of issues that are calculated when active is negative… #90

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cli/script/command-executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,9 @@ export function execute(command: cli.ICommand) {
function getTotalActiveFromDeploymentMetrics(metrics: DeploymentMetrics): number {
let totalActive = 0;
Object.keys(metrics).forEach((label: string) => {
totalActive += metrics[label].active;
if (metrics[label].active > 0) {
totalActive += metrics[label].active;
}
});

return totalActive;
Expand Down