Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
fix: Correction of issues that are calculated when active is negative…
… and total active is incorrectly marked
  • Loading branch information
현승호 committed Feb 3, 2025
commit 5d64896aa51cee6d0c74b60264d6df6f5b771898
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