From 39c7d4d68411571b4d3fe81409ef805ca874c141 Mon Sep 17 00:00:00 2001
From: Vitalii Lysak <v.lysak@dunice.net>
Date: Fri, 22 Jul 2022 20:09:09 +0300
Subject: add table, processor

---
 src/components/_sila/Global/Chart.vue | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(limited to 'src/components/_sila/Global/Chart.vue')

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]);
         });
-- 
cgit v1.2.3

