Skip to content

Commit

Permalink
fix min calculation
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
  • Loading branch information
torchiaf committed Jul 12, 2023
1 parent fdda7f7 commit db91dd7
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], max: 0, total: 0
});

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

0 comments on commit db91dd7

Please sign in to comment.