{"action":"opened","issue":{"url":"https://api.github.com/repos/apache/incubator-skywalking/issues/1433","repository_url":"https://api.github.com/repos/apache/incubator-skywalking","labels_url":"https://api.github.com/repos/apache/incubator-skywalking/issues/1433/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-skywalking/issues/1433/comments","events_url":"https://api.github.com/repos/apache/incubator-skywalking/issues/1433/events","html_url":"https://github.com/apache/incubator-skywalking/issues/1433","id":338879273,"node_id":"MDU6SXNzdWUzMzg4NzkyNzM=","number":1433,"title":"in web ui  dashbaord, service num Display error","user":{"login":"idealspark","id":13582038,"node_id":"MDQ6VXNlcjEzNTgyMDM4","avatar_url":"https://avatars0.githubusercontent.com/u/13582038?v=4","gravatar_id":"","url":"https://api.github.com/users/idealspark","html_url":"https://github.com/idealspark","followers_url":"https://api.github.com/users/idealspark/followers","following_url":"https://api.github.com/users/idealspark/following{/other_user}","gists_url":"https://api.github.com/users/idealspark/gists{/gist_id}","starred_url":"https://api.github.com/users/idealspark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idealspark/subscriptions","organizations_url":"https://api.github.com/users/idealspark/orgs","repos_url":"https://api.github.com/users/idealspark/repos","events_url":"https://api.github.com/users/idealspark/events{/privacy}","received_events_url":"https://api.github.com/users/idealspark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-06T09:58:44Z","updated_at":"2018-07-06T09:58:44Z","closed_at":null,"author_association":"NONE","body":"Please answer these questions before submitting your issue.\r\n\r\n- Why do you submit this issue?\r\n- [ x] Question or discussion\r\n- [ ] Bug\r\n- [ ] Requirement\r\n- [ ] Feature or performance improvement\r\n\r\n___\r\n### Question\r\n- What do you want to know?\r\n\r\n___\r\n### Bug\r\n- Which version of SkyWalking, OS and JRE?\r\n **5.0.0-beta2**\r\n- Which company or project?\r\n\r\n- What happen?\r\nIf possible, provide a way for reproducing the error. e.g. demo application, component version.\r\n**in web ui  dashbaord, service count always show the number within 9 hours  ,not according to params \r\n such as 15 minutes,2 days beacuse hard code ,my english is poor show your code ,in class OverViewLayerQuery  111 line not pass duration,\r\n```\r\npublic ClusterBrief getClusterBrief(Duration duration) {\r\n        long startSecondTimeBucket = DurationUtils.INSTANCE.startTimeDurationToSecondTimeBucket(duration.getStep(), duration.getStart());\r\n        long endSecondTimeBucket = DurationUtils.INSTANCE.endTimeDurationToSecondTimeBucket(duration.getStep(), duration.getEnd());\r\n\r\n        ClusterBrief clusterBrief = new ClusterBrief();\r\n        clusterBrief.setNumOfApplication(getApplicationService().getApplications(startSecondTimeBucket, endSecondTimeBucket).size());\r\n        clusterBrief.setNumOfDatabase(getNetworkAddressService().getNumOfDatabase());\r\n        clusterBrief.setNumOfCache(getNetworkAddressService().getNumOfCache());\r\n        clusterBrief.setNumOfMQ(getNetworkAddressService().getNumOfMQ());\r\n\r\n//not pass duration\r\n        clusterBrief.setNumOfService(getServiceNameService().getCount());\r\n        return clusterBrief;\r\n    }\r\n```\r\nin class ServiceNameService 62 line call method startTimeMillis() ,but One second equals 1000 milliseconds,in code is 100 milliseconds\r\n```\r\nprivate long startTimeMillis() {\r\n        int minuteMetricDataTTL = configService.minuteMetricDataTTL();\r\n        return System.currentTimeMillis() - minuteMetricDataTTL * 60 * 60 * 100;\r\n    }\r\n```\r\n**\r\n___\r\n### Requirement or improvement\r\n- Please describe about your requirements or improvement suggestions."}}
{"actor":{"display_login":"idealspark"}}