From 91843f8b01ac19d989cd08f401aad97af0d9dced Mon Sep 17 00:00:00 2001 From: Denny Lim Date: Wed, 19 Feb 2014 06:53:29 +0000 Subject: [PATCH] =?UTF-8?q?[=EC=9E=84=EB=8C=80=ED=98=84]=20#10=20[CallStac?= =?UTF-8?q?ks]=20=EC=84=B1=EB=8A=A5=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@3363 84d0f5b1-2673-498c-a247-62c4ff18d310 --- .../scripts/directives/distributedCallFlow.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/main/webapp/scripts/directives/distributedCallFlow.js b/src/main/webapp/scripts/directives/distributedCallFlow.js index 38a1d5249..0c27d96fb 100644 --- a/src/main/webapp/scripts/directives/distributedCallFlow.js +++ b/src/main/webapp/scripts/directives/distributedCallFlow.js @@ -16,7 +16,7 @@ pinpointApp.directive('distributedCallFlow', [ '$filter', var grid, columns, dataView, lastAgent; // initialize variables of methods - var initialize, treeFormatter, treeFilter, parseData, execTimeFormatter, numberFormatter, + var initialize, treeFormatter, treeFilter, parseData, execTimeFormatter, getColorByString, progressBarFormatter; // bootstrap @@ -52,13 +52,19 @@ pinpointApp.directive('distributedCallFlow', [ '$filter', html.push("  "); } + if (item.hasException) { + html.push(''); html.push(' '); } else if (!item.isMethod) { + html.push(''); html.push(' '); + } else { + html.push(''); } html.push(value); + html.push(''); return html.join(''); }; @@ -82,19 +88,15 @@ pinpointApp.directive('distributedCallFlow', [ '$filter', return $filter('date')(value, 'HH:mm:ss sss'); }; - numberFormatter = function (row, cell, value, columnDef, dataContext) { - return $filter('number')(value); - }; - progressBarFormatter = function (row, cell, value, columnDef, dataContext) { if (value == null || value === "" || value == 0) { return ""; } var color; if (value < 30) { - color = "#B0E3F1"; + color = "#5bc0de"; } else if (value < 70) { - color = "#81CFE5"; + color = "#5bc0de"; } else { color = "#5bc0de"; }