You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by wu...@apache.org on 2019/10/10 16:10:00 UTC
[skywalking-rocketbot-ui] branch master updated: fixbug: Reduce of
empty array with no initial value (#163)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-rocketbot-ui.git
The following commit(s) were added to refs/heads/master by this push:
new e8b9604 fixbug: Reduce of empty array with no initial value (#163)
e8b9604 is described below
commit e8b96044c8876c67327e913833de1a61a44319c1
Author: yi.liang <in...@126.com>
AuthorDate: Thu Oct 10 11:09:55 2019 -0500
fixbug: Reduce of empty array with no initial value (#163)
* fixbug, the nonheap free dashboard is minus
* the jvm-maxHeap & jvm-maxNonHeap is -1, Free is no value
* the jvm-maxHeap & jvm-maxNonHeap is -1, Free is no value
* the jvm-maxHeap & jvm-maxNonHeap is -1, Free is no value
* the jvm-maxHeap & jvm-maxNonHeap is -1, Free is no value
* the jvm-maxHeap & jvm-maxNonHeap is -1, Free is no value
* fixbug: chart-count.vue
---
src/views/components/dashboard/charts/chart-count.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/components/dashboard/charts/chart-count.vue b/src/views/components/dashboard/charts/chart-count.vue
index 943faa7..3291e4b 100644
--- a/src/views/components/dashboard/charts/chart-count.vue
+++ b/src/views/components/dashboard/charts/chart-count.vue
@@ -19,10 +19,10 @@
<div class="rk-chart-count">
<div class="mb-10 pt-10 b"><span class="mr-10">YoungGC Count</span><span class="count r">{{data.youngGC.reduce(function (preValue,curValue,index,array) {
return preValue + curValue;
-})}}</span></div>
+}, 0)}}</span></div>
<div class="mb-10 pt-10 b"><span class="mr-10">OldGC Count</span><span class="count r">{{data.oldGC.reduce(function (preValue,curValue,index,array) {
return preValue + curValue;
-})}}</span></div>
+}, 0)}}</span></div>
</div>
</template>