Skip to content

Commit

Permalink
fix(laravel-insights): fix display when 100% of jobs fail (#86368)
Browse files Browse the repository at this point in the history
  • Loading branch information
shellmayr authored Mar 5, 2025
1 parent f34ac45 commit d1f54c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ function JobsWidget({query}: {query?: string}) {
(acc, [time, [value]], index) => {
const spansInTimeBucket = getSpansInTimeBucket(index);
const okJobsRateValue = value?.count! || 0;
const failedJobsRateValue = value?.count ? 1 - value.count : 0;
const failedJobsRateValue = value?.count ? 1 - value.count : 1;

acc[0].data.push({
value: okJobsRateValue * spansInTimeBucket,
Expand Down

0 comments on commit d1f54c8

Please sign in to comment.