Skip to content

Commit

Permalink
Merge pull request #275 from torchiaf/fix-stats
Browse files Browse the repository at this point in the history
Fix `min` calculation
  • Loading branch information
richard-cox authored Jul 25, 2023
2 parents a895d6f + 50c8ea6 commit 21142dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboard/pkg/epinio/models/applications.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ export default class EpinioApplicationModel extends EpinioNamespacedResource {

return res;
}, {
min: 0, max: 0, total: 0
min: this.instances[0]?.[prop] || 0, max: 0, total: 0
});

const avg = this.instances.length ? (stats.total / this.instances.length).toFixed(2) : 0;
Expand Down

0 comments on commit 21142dd

Please sign in to comment.