diff options
Diffstat (limited to 'gui-pdp-monitoring/src/webapp/js/PdpEngineWorkerStatus.js')
-rw-r--r-- | gui-pdp-monitoring/src/webapp/js/PdpEngineWorkerStatus.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gui-pdp-monitoring/src/webapp/js/PdpEngineWorkerStatus.js b/gui-pdp-monitoring/src/webapp/js/PdpEngineWorkerStatus.js index 4ba8703..f130617 100644 --- a/gui-pdp-monitoring/src/webapp/js/PdpEngineWorkerStatus.js +++ b/gui-pdp-monitoring/src/webapp/js/PdpEngineWorkerStatus.js @@ -121,7 +121,8 @@ function setEngineStatusData(engineStatusData, changed) { var lastPolicyDurationDiv = document.createElement("div"); lastPolicyDurationDiv.setAttribute("id", chartConfig.parent); lastPolicyDurationDiv.setAttribute("class", "papChart"); - createChart(JSON.parse(engineStatusData[esd].lastPolicyDuration), lastPolicyDurationDiv, + + createChart(engineStatusData[esd].lastPolicyDuration, lastPolicyDurationDiv, chartConfig.title, chartConfig.unit, chartConfig.lineStroke, chartConfig.nodeColour); $(chartWrapper).append(lastPolicyDurationDiv); } @@ -136,7 +137,7 @@ function setEngineStatusData(engineStatusData, changed) { var averagePolicyDurationDiv = document.createElement("div"); averagePolicyDurationDiv.setAttribute("id", chartConfig.parent); averagePolicyDurationDiv.setAttribute("class", "papChart"); - createChart(JSON.parse(engineStatusData[esd].averagePolicyDuration), averagePolicyDurationDiv, + createChart(engineStatusData[esd].averagePolicyDuration, averagePolicyDurationDiv, chartConfig.title, chartConfig.unit, chartConfig.lineStroke, chartConfig.nodeColour); $(chartWrapper).append(averagePolicyDurationDiv); } |