{"action":"opened","issue":{"url":"https://api.github.com/repos/bertrandmartel/speed-test-lib/issues/19","repository_url":"https://api.github.com/repos/bertrandmartel/speed-test-lib","labels_url":"https://api.github.com/repos/bertrandmartel/speed-test-lib/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/bertrandmartel/speed-test-lib/issues/19/comments","events_url":"https://api.github.com/repos/bertrandmartel/speed-test-lib/issues/19/events","html_url":"https://github.com/bertrandmartel/speed-test-lib/issues/19","id":197063213,"number":19,"title":"SpeedTestReport : getTransferRateBit() ","user":{"login":"NickGuaGua","id":13476850,"avatar_url":"https://avatars.githubusercontent.com/u/13476850?v=3","gravatar_id":"","url":"https://api.github.com/users/NickGuaGua","html_url":"https://github.com/NickGuaGua","followers_url":"https://api.github.com/users/NickGuaGua/followers","following_url":"https://api.github.com/users/NickGuaGua/following{/other_user}","gists_url":"https://api.github.com/users/NickGuaGua/gists{/gist_id}","starred_url":"https://api.github.com/users/NickGuaGua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickGuaGua/subscriptions","organizations_url":"https://api.github.com/users/NickGuaGua/orgs","repos_url":"https://api.github.com/users/NickGuaGua/repos","events_url":"https://api.github.com/users/NickGuaGua/events{/privacy}","received_events_url":"https://api.github.com/users/NickGuaGua/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-22T00:02:26Z","updated_at":"2016-12-22T00:02:26Z","closed_at":null,"body":"public void onDownloadProgress(float percent, SpeedTestReport report) {\r\n        report.getTransferRateBit()\r\n}\r\nThe result will be cumulatively.\r\nI think the calculation seems to be wrong, and here is my calculation :\r\n\r\n                float getTemporaryPacketSize = report.getTemporaryPacketSize();\r\n                float intervalDLSize = getTemporaryPacketSize-tempSize;\r\n                tempSize = getTemporaryPacketSize;\r\n\r\n                if(tempDLTime ==0)\r\n                    tempDLTime = report.getStartTime();\r\n\r\n                long getReportTime = report.getReportTime();\r\n                long intervalDLTime = getReportTime-tempDLTime ;\r\n                tempDLTime = getReportTime;\r\n\r\n                float mKBps = (intervalDLSize/intervalDLTime)*1000/8/1000 ;\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"NickGuaGua"}}