Add a flag to hide the averages. They are not calculated in this case

pull/941/head
M 2025-05-26 16:38:25 +02:00
parent 732f072cd4
commit bd0a4e9cfd
1 changed files with 16 additions and 9 deletions

View File

@ -60,6 +60,7 @@ export default {
// Initialise counts, avg times
this.total = response.length;
this.up = 0;
let totalrestime = 0;
let totalresults = 0;
@ -68,6 +69,7 @@ export default {
this.up++;
};
if (!this.item.hideaverages) {
// Update array of average times
let totalduration = 0;
let rescounter = 0;
@ -78,6 +80,11 @@ export default {
totalrestime += totalduration;
totalresults += rescounter;
} else {
totalrestime = 0;
totalresults = 1;
}
})
// Rest are down