Skip to content

Commit

Permalink
fix: Update fillEmptyMetrics rules (#4448)
Browse files Browse the repository at this point in the history
Signed-off-by: lannyfu <[email protected]>
  • Loading branch information
fuchunlan authored Jan 21, 2025
1 parent 55f5b3a commit 8b93eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared/src/utils/monitoring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const fillEmptyMetrics = (params: Record<string, any>, result: FormattedS
}

const format = (num: number) => String(num).replace(/\..*$/, '');
const step = Math.floor((params.end - params.start) / params.times);
const step = parseFloat(params.step.replace(/s$/, ''));
const correctCount = params.times + 1;

Object.values(result).forEach(item => {
Expand Down

0 comments on commit 8b93eab

Please sign in to comment.