summaryrefslogtreecommitdiffstats
path: root/gui-pdp-monitoring/src/webapp/js/PdpStatisticsSummary.js
diff options
context:
space:
mode:
authorHenry.Sun <henry.a.sun@est.tech>2020-03-24 15:16:46 +0800
committerHenry.Sun <henry.a.sun@est.tech>2020-03-25 12:48:02 +0800
commitfd5306f16f1e1f1bd07c706f073d57a700eff603 (patch)
tree81cc348197a2014422bc9fc54d2477e3368ddf84 /gui-pdp-monitoring/src/webapp/js/PdpStatisticsSummary.js
parentf9e85b70f97c139911466336f29fb365de53306c (diff)
add coverage test for JS
Issue-ID: POLICY-2311 Change-Id: I12a041f59bf07ed4e8688545522e64a338cdb326 Signed-off-by: Henry.Sun <henry.a.sun@est.tech>
Diffstat (limited to 'gui-pdp-monitoring/src/webapp/js/PdpStatisticsSummary.js')
-rw-r--r--gui-pdp-monitoring/src/webapp/js/PdpStatisticsSummary.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui-pdp-monitoring/src/webapp/js/PdpStatisticsSummary.js b/gui-pdp-monitoring/src/webapp/js/PdpStatisticsSummary.js
index 4060c05..b8065bb 100644
--- a/gui-pdp-monitoring/src/webapp/js/PdpStatisticsSummary.js
+++ b/gui-pdp-monitoring/src/webapp/js/PdpStatisticsSummary.js
@@ -118,7 +118,7 @@ function getAvgPolicyDuration(data) {
var chartData = [];
var avgPolicyDurations = [];
for ( var d in data) {
- var avgPolicyDuration = JSON.parse(data[d].averagePolicyDuration);
+ var avgPolicyDuration = data[d].averagePolicyDuration;
avgPolicyDurations.push(avgPolicyDuration);
}