{"action":"closed","issue":{"url":"https://api.github.com/repos/Grarak/KernelAdiutor/issues/450","repository_url":"https://api.github.com/repos/Grarak/KernelAdiutor","labels_url":"https://api.github.com/repos/Grarak/KernelAdiutor/issues/450/labels{/name}","comments_url":"https://api.github.com/repos/Grarak/KernelAdiutor/issues/450/comments","events_url":"https://api.github.com/repos/Grarak/KernelAdiutor/issues/450/events","html_url":"https://github.com/Grarak/KernelAdiutor/issues/450","id":176902326,"number":450,"title":"GPU load in GPUFreq.java","user":{"login":"waterdaan","id":12684488,"avatar_url":"https://avatars.githubusercontent.com/u/12684488?v=3","gravatar_id":"","url":"https://api.github.com/users/waterdaan","html_url":"https://github.com/waterdaan","followers_url":"https://api.github.com/users/waterdaan/followers","following_url":"https://api.github.com/users/waterdaan/following{/other_user}","gists_url":"https://api.github.com/users/waterdaan/gists{/gist_id}","starred_url":"https://api.github.com/users/waterdaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waterdaan/subscriptions","organizations_url":"https://api.github.com/users/waterdaan/orgs","repos_url":"https://api.github.com/users/waterdaan/repos","events_url":"https://api.github.com/users/waterdaan/events{/privacy}","received_events_url":"https://api.github.com/users/waterdaan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-14T13:07:04Z","updated_at":"2016-09-26T21:50:03Z","closed_at":"2016-09-26T21:50:03Z","body":" int length = value.split(\" \").length;\r\n\r\non onePlusOne if the GPU is in use length=3, if not in use length = 14\r\nso value.split(\" \")[0]=\"\"\r\n\r\nthis is working on 1+1\r\n\r\npublic static int getBusy() {\r\n        String value = Utils.readFile(BUSY);\r\n        float arg1 = Utils.strToFloat(value.split(\" \")[1]);\r\n        float arg2 = Utils.strToFloat(value.split(\" \")[2]);\r\n        return arg2 == 0 ? 0 : Math.round(arg1 / arg2 * 100f);\r\n    }"}}
{"actor":{"display_login":"waterdaan"}}