This is an automated email from the ASF dual-hosted git repository. hanahmily pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-skywalking-ui.git
commit c4abbde39d52b31c9e5b94fe2a8013cda3f6ced7 Author: gaohongtao <[email protected]> AuthorDate: Tue Oct 30 10:15:51 2018 +0800 Convert the SLA metric display to percentage --- mock/metric.js | 2 +- src/components/ApplicationLitePanel/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mock/metric.js b/mock/metric.js index 203d525..ada83b2 100644 --- a/mock/metric.js +++ b/mock/metric.js @@ -34,7 +34,7 @@ export default { { 'values|60': [{ 'id|+1': 1, - value: '@natural(0, 100)', + value: '@natural(100, 10000)', }], } )), diff --git a/src/components/ApplicationLitePanel/index.js b/src/components/ApplicationLitePanel/index.js index a834c1b..c237670 100644 --- a/src/components/ApplicationLitePanel/index.js +++ b/src/components/ApplicationLitePanel/index.js @@ -28,7 +28,7 @@ export default class ApplicationLitePanel extends PureComponent { <div> {appInfo.isAlarm ? <Avatar style={{ backgroundColor: '#F04864', marginBottom: 10 }} icon="bell" /> : null} <DescriptionList col={1} layout="vertical"> - <Description term="SLA">{appInfo.sla}%</Description> + <Description term="SLA">{appInfo.sla / 100}%</Description> <Description term="Calls Per Minute">{appInfo.cpm}</Description> <Description term="Avg Response Time">{appInfo.avgResponseTime} ms</Description> </DescriptionList>
