diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-07-22 20:09:09 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-07-22 20:09:09 +0300 |
commit | 39c7d4d68411571b4d3fe81409ef805ca874c141 (patch) | |
tree | f69323674008d2fcca8726259e4890be9d09eff5 /src/components/_sila | |
parent | 5541fa8aa255edda1904631294e7c7ecb6650245 (diff) | |
download | webui-vue-39c7d4d68411571b4d3fe81409ef805ca874c141.tar.xz |
add table, processor
Diffstat (limited to 'src/components/_sila')
-rw-r--r-- | src/components/_sila/Global/Chart.vue | 8 |
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]); }); |