summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorVitalii Lysak <v.lysak@dunice.net>2022-07-22 20:09:09 +0300
committerVitalii Lysak <v.lysak@dunice.net>2022-07-22 20:09:09 +0300
commit39c7d4d68411571b4d3fe81409ef805ca874c141 (patch)
treef69323674008d2fcca8726259e4890be9d09eff5 /src/components
parent5541fa8aa255edda1904631294e7c7ecb6650245 (diff)
downloadwebui-vue-39c7d4d68411571b4d3fe81409ef805ca874c141.tar.xz
add table, processor
Diffstat (limited to 'src/components')
-rw-r--r--src/components/_sila/Global/Chart.vue8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/components/_sila/Global/Chart.vue b/src/components/_sila/Global/Chart.vue
index c5214bd7..a74c5425 100644
--- a/src/components/_sila/Global/Chart.vue
+++ b/src/components/_sila/Global/Chart.vue
@@ -79,9 +79,11 @@ export default {
let arr = Object.keys(groupTime).map((key) => {
const findAverage = (arr) => {
const { length } = arr;
- return arr.reduce((acc, val) => {
- return Math.round(acc + val.MetricValue / length);
- }, 0);
+ return Math.round(
+ arr.reduce((acc, val) => {
+ return acc + val.MetricValue / length;
+ }, 0)
+ );
};
return findAverage(groupTime[key]);
});