mirror of https://github.com/bastienwirtz/homer
Remove console logging
parent
fc2e65473a
commit
732f072cd4
|
@ -52,7 +52,6 @@ export default {
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
// Apply filtering by groups, if defined
|
// Apply filtering by groups, if defined
|
||||||
if (this.item.groups) {
|
if (this.item.groups) {
|
||||||
console.log("Applying filters");
|
|
||||||
response = response?.filter((job) => {
|
response = response?.filter((job) => {
|
||||||
return this.item.groups.includes(job.group) === true;
|
return this.item.groups.includes(job.group) === true;
|
||||||
})
|
})
|
||||||
|
@ -70,8 +69,6 @@ export default {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Update array of average times
|
// Update array of average times
|
||||||
console.log("Total before: " + totalrestime);
|
|
||||||
|
|
||||||
let totalduration = 0;
|
let totalduration = 0;
|
||||||
let rescounter = 0;
|
let rescounter = 0;
|
||||||
job.results.forEach((res) => {
|
job.results.forEach((res) => {
|
||||||
|
@ -79,23 +76,15 @@ export default {
|
||||||
rescounter++;
|
rescounter++;
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log("Job duration: " + totalduration);
|
|
||||||
|
|
||||||
totalrestime += totalduration;
|
totalrestime += totalduration;
|
||||||
totalresults += rescounter;
|
totalresults += rescounter;
|
||||||
|
|
||||||
console.log("Total after: " + totalrestime);
|
|
||||||
console.log("Total counter: " + totalresults);
|
|
||||||
})
|
})
|
||||||
|
|
||||||
// Rest are down
|
// Rest are down
|
||||||
this.down = this.total - this.up;
|
this.down = this.total - this.up;
|
||||||
|
|
||||||
console.log("Total jobs UP: " + this.up + " DOWN: " + this.down + " TOTAL: " + this.total);
|
|
||||||
|
|
||||||
// Calculate overall average response time
|
// Calculate overall average response time
|
||||||
this.avgRespTime = (totalrestime / totalresults).toFixed(2);
|
this.avgRespTime = (totalrestime / totalresults).toFixed(2);
|
||||||
console.log("Average: " + this.avgRespTime);
|
|
||||||
|
|
||||||
// Update representations
|
// Update representations
|
||||||
if (this.up == 0 || this.total == 0) {
|
if (this.up == 0 || this.total == 0) {
|
||||||
|
|
Loading…
Reference in New Issue