{"action":"created","comment":{"url":"https://api.github.com/repos/ethereum-mining/ethminer/pulls/comments/168957497","pull_request_review_id":97408651,"id":168957497,"diff_hunk":"@@ -29,3 +29,26 @@ static int wrap_dlclose(void *h) {\n \treturn dlclose(h);\n }\n #endif\n+//Converts from 8 fractional bit int to double (ADL method result format)\n+static double adlf2double(int adlf){\n+\tdouble res = 0.0;\n+\tint fraction = \tadlf & 0x00FF; //last 8 bits seem to be decimal part\n+\tint number = \t(adlf & 0xFF00) >> 8; //first 8 bits are the integer part\n+\tdouble dfraction = 0; //decimal part\n+\tint i = 1;\n+\twhile(fraction > 0){","path":"libhwmon/wraphelper.h","position":11,"original_position":11,"commit_id":"1f5988fbaa60072b6ab73c0fe1f8fd2adc6307a4","original_commit_id":"1f5988fbaa60072b6ab73c0fe1f8fd2adc6307a4","user":{"login":"Davesmacer","id":7698291,"avatar_url":"https://avatars0.githubusercontent.com/u/7698291?v=4","gravatar_id":"","url":"https://api.github.com/users/Davesmacer","html_url":"https://github.com/Davesmacer","followers_url":"https://api.github.com/users/Davesmacer/followers","following_url":"https://api.github.com/users/Davesmacer/following{/other_user}","gists_url":"https://api.github.com/users/Davesmacer/gists{/gist_id}","starred_url":"https://api.github.com/users/Davesmacer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Davesmacer/subscriptions","organizations_url":"https://api.github.com/users/Davesmacer/orgs","repos_url":"https://api.github.com/users/Davesmacer/repos","events_url":"https://api.github.com/users/Davesmacer/events{/privacy}","received_events_url":"https://api.github.com/users/Davesmacer/received_events","type":"User","site_admin":false},"body":"Shouldn't it be \r\nreturn double(adlf & 0x00FF) / 256 ?","created_at":"2018-02-18T16:39:53Z","updated_at":"2018-02-18T16:39:53Z","html_url":"https://github.com/ethereum-mining/ethminer/pull/758#discussion_r168957497","pull_request_url":"https://api.github.com/repos/ethereum-mining/ethminer/pulls/758","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ethereum-mining/ethminer/pulls/comments/168957497"},"html":{"href":"https://github.com/ethereum-mining/ethminer/pull/758#discussion_r168957497"},"pull_request":{"href":"https://api.github.com/repos/ethereum-mining/ethminer/pulls/758"}},"in_reply_to_id":168955398},"pull_request":{"url":"https://api.github.com/repos/ethereum-mining/ethminer/pulls/758","id":169787780,"html_url":"https://github.com/ethereum-mining/ethminer/pull/758","diff_url":"https://github.com/ethereum-mining/ethminer/pull/758.diff","patch_url":"https://github.com/ethereum-mining/ethminer/pull/758.patch","issue_url":"https://api.github.com/repos/ethereum-mining/ethminer/issues/758","number":758,"state":"open","locked":false,"title":"Power usage parameterized (Now Nvidia and AMD in both Linux and Windows)","user":{"login":"Davesmacer","id":7698291,"avatar_url":"https://avatars0.githubusercontent.com/u/7698291?v=4","gravatar_id":"","url":"https://api.github.com/users/Davesmacer","html_url":"https://github.com/Davesmacer","followers_url":"https://api.github.com/users/Davesmacer/followers","following_url":"https://api.github.com/users/Davesmacer/following{/other_user}","gists_url":"https://api.github.com/users/Davesmacer/gists{/gist_id}","starred_url":"https://api.github.com/users/Davesmacer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Davesmacer/subscriptions","organizations_url":"https://api.github.com/users/Davesmacer/orgs","repos_url":"https://api.github.com/users/Davesmacer/repos","events_url":"https://api.github.com/users/Davesmacer/events{/privacy}","received_events_url":"https://api.github.com/users/Davesmacer/received_events","type":"User","site_admin":false},"body":"-HWMON works as before\r\n-HWMON 0 works as before\r\n-HWMON 1 shows power for Nvidia cards\r\n\r\n![image](https://user-images.githubusercontent.com/7698291/36342466-b2090b36-13c4-11e8-83c1-9d33efc60ca1.png)\r\n","created_at":"2018-02-17T15:27:12Z","updated_at":"2018-02-18T16:39:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b22e87567570e617b7a93ebe523e111c0bcc71af","assignee":{"login":"smurfy","id":805790,"avatar_url":"https://avatars1.githubusercontent.com/u/805790?v=4","gravatar_id":"","url":"https://api.github.com/users/smurfy","html_url":"https://github.com/smurfy","followers_url":"https://api.github.com/users/smurfy/followers","following_url":"https://api.github.com/users/smurfy/following{/other_user}","gists_url":"https://api.github.com/users/smurfy/gists{/gist_id}","starred_url":"https://api.github.com/users/smurfy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smurfy/subscriptions","organizations_url":"https://api.github.com/users/smurfy/orgs","repos_url":"https://api.github.com/users/smurfy/repos","events_url":"https://api.github.com/users/smurfy/events{/privacy}","received_events_url":"https://api.github.com/users/smurfy/received_events","type":"User","site_admin":false},"assignees":[{"login":"smurfy","id":805790,"avatar_url":"https://avatars1.githubusercontent.com/u/805790?v=4","gravatar_id":"","url":"https://api.github.com/users/smurfy","html_url":"https://github.com/smurfy","followers_url":"https://api.github.com/users/smurfy/followers","following_url":"https://api.github.com/users/smurfy/following{/other_user}","gists_url":"https://api.github.com/users/smurfy/gists{/gist_id}","starred_url":"https://api.github.com/users/smurfy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smurfy/subscriptions","organizations_url":"https://api.github.com/users/smurfy/orgs","repos_url":"https://api.github.com/users/smurfy/repos","events_url":"https://api.github.com/users/smurfy/events{/privacy}","received_events_url":"https://api.github.com/users/smurfy/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ethereum-mining/ethminer/pulls/758/commits","review_comments_url":"https://api.github.com/repos/ethereum-mining/ethminer/pulls/758/comments","review_comment_url":"https://api.github.com/repos/ethereum-mining/ethminer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ethereum-mining/ethminer/issues/758/comments","statuses_url":"https://api.github.com/repos/ethereum-mining/ethminer/statuses/1f5988fbaa60072b6ab73c0fe1f8fd2adc6307a4","head":{"label":"Davesmacer:show-power","ref":"show-power","sha":"1f5988fbaa60072b6ab73c0fe1f8fd2adc6307a4","user":{"login":"Davesmacer","id":7698291,"avatar_url":"https://avatars0.githubusercontent.com/u/7698291?v=4","gravatar_id":"","url":"https://api.github.com/users/Davesmacer","html_url":"https://github.com/Davesmacer","followers_url":"https://api.github.com/users/Davesmacer/followers","following_url":"https://api.github.com/users/Davesmacer/following{/other_user}","gists_url":"https://api.github.com/users/Davesmacer/gists{/gist_id}","starred_url":"https://api.github.com/users/Davesmacer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Davesmacer/subscriptions","organizations_url":"https://api.github.com/users/Davesmacer/orgs","repos_url":"https://api.github.com/users/Davesmacer/repos","events_url":"https://api.github.com/users/Davesmacer/events{/privacy}","received_events_url":"https://api.github.com/users/Davesmacer/received_events","type":"User","site_admin":false},"repo":{"id":121865795,"name":"ethminer","full_name":"Davesmacer/ethminer","owner":{"login":"Davesmacer","id":7698291,"avatar_url":"https://avatars0.githubusercontent.com/u/7698291?v=4","gravatar_id":"","url":"https://api.github.com/users/Davesmacer","html_url":"https://github.com/Davesmacer","followers_url":"https://api.github.com/users/Davesmacer/followers","following_url":"https://api.github.com/users/Davesmacer/following{/other_user}","gists_url":"https://api.github.com/users/Davesmacer/gists{/gist_id}","starred_url":"https://api.github.com/users/Davesmacer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Davesmacer/subscriptions","organizations_url":"https://api.github.com/users/Davesmacer/orgs","repos_url":"https://api.github.com/users/Davesmacer/repos","events_url":"https://api.github.com/users/Davesmacer/events{/privacy}","received_events_url":"https://api.github.com/users/Davesmacer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Davesmacer/ethminer","description":"Ethereum miner with OpenCL, CUDA and stratum support","fork":true,"url":"https://api.github.com/repos/Davesmacer/ethminer","forks_url":"https://api.github.com/repos/Davesmacer/ethminer/forks","keys_url":"https://api.github.com/repos/Davesmacer/ethminer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Davesmacer/ethminer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Davesmacer/ethminer/teams","hooks_url":"https://api.github.com/repos/Davesmacer/ethminer/hooks","issue_events_url":"https://api.github.com/repos/Davesmacer/ethminer/issues/events{/number}","events_url":"https://api.github.com/repos/Davesmacer/ethminer/events","assignees_url":"https://api.github.com/repos/Davesmacer/ethminer/assignees{/user}","branches_url":"https://api.github.com/repos/Davesmacer/ethminer/branches{/branch}","tags_url":"https://api.github.com/repos/Davesmacer/ethminer/tags","blobs_url":"https://api.github.com/repos/Davesmacer/ethminer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Davesmacer/ethminer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Davesmacer/ethminer/git/refs{/sha}","trees_url":"https://api.github.com/repos/Davesmacer/ethminer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Davesmacer/ethminer/statuses/{sha}","languages_url":"https://api.github.com/repos/Davesmacer/ethminer/languages","stargazers_url":"https://api.github.com/repos/Davesmacer/ethminer/stargazers","contributors_url":"https://api.github.com/repos/Davesmacer/ethminer/contributors","subscribers_url":"https://api.github.com/repos/Davesmacer/ethminer/subscribers","subscription_url":"https://api.github.com/repos/Davesmacer/ethminer/subscription","commits_url":"https://api.github.com/repos/Davesmacer/ethminer/commits{/sha}","git_commits_url":"https://api.github.com/repos/Davesmacer/ethminer/git/commits{/sha}","comments_url":"https://api.github.com/repos/Davesmacer/ethminer/comments{/number}","issue_comment_url":"https://api.github.com/repos/Davesmacer/ethminer/issues/comments{/number}","contents_url":"https://api.github.com/repos/Davesmacer/ethminer/contents/{+path}","compare_url":"https://api.github.com/repos/Davesmacer/ethminer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Davesmacer/ethminer/merges","archive_url":"https://api.github.com/repos/Davesmacer/ethminer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Davesmacer/ethminer/downloads","issues_url":"https://api.github.com/repos/Davesmacer/ethminer/issues{/number}","pulls_url":"https://api.github.com/repos/Davesmacer/ethminer/pulls{/number}","milestones_url":"https://api.github.com/repos/Davesmacer/ethminer/milestones{/number}","notifications_url":"https://api.github.com/repos/Davesmacer/ethminer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Davesmacer/ethminer/labels{/name}","releases_url":"https://api.github.com/repos/Davesmacer/ethminer/releases{/id}","deployments_url":"https://api.github.com/repos/Davesmacer/ethminer/deployments","created_at":"2018-02-17T15:23:07Z","updated_at":"2018-02-17T15:23:10Z","pushed_at":"2018-02-18T15:17:26Z","git_url":"git://github.com/Davesmacer/ethminer.git","ssh_url":"git@github.com:Davesmacer/ethminer.git","clone_url":"https://github.com/Davesmacer/ethminer.git","svn_url":"https://github.com/Davesmacer/ethminer","homepage":"","size":52417,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ethereum-mining:master","ref":"master","sha":"07f5d714ea652af8defaa07212600a5e6c5ffa08","user":{"login":"ethereum-mining","id":27890133,"avatar_url":"https://avatars1.githubusercontent.com/u/27890133?v=4","gravatar_id":"","url":"https://api.github.com/users/ethereum-mining","html_url":"https://github.com/ethereum-mining","followers_url":"https://api.github.com/users/ethereum-mining/followers","following_url":"https://api.github.com/users/ethereum-mining/following{/other_user}","gists_url":"https://api.github.com/users/ethereum-mining/gists{/gist_id}","starred_url":"https://api.github.com/users/ethereum-mining/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethereum-mining/subscriptions","organizations_url":"https://api.github.com/users/ethereum-mining/orgs","repos_url":"https://api.github.com/users/ethereum-mining/repos","events_url":"https://api.github.com/users/ethereum-mining/events{/privacy}","received_events_url":"https://api.github.com/users/ethereum-mining/received_events","type":"Organization","site_admin":false},"repo":{"id":89067146,"name":"ethminer","full_name":"ethereum-mining/ethminer","owner":{"login":"ethereum-mining","id":27890133,"avatar_url":"https://avatars1.githubusercontent.com/u/27890133?v=4","gravatar_id":"","url":"https://api.github.com/users/ethereum-mining","html_url":"https://github.com/ethereum-mining","followers_url":"https://api.github.com/users/ethereum-mining/followers","following_url":"https://api.github.com/users/ethereum-mining/following{/other_user}","gists_url":"https://api.github.com/users/ethereum-mining/gists{/gist_id}","starred_url":"https://api.github.com/users/ethereum-mining/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethereum-mining/subscriptions","organizations_url":"https://api.github.com/users/ethereum-mining/orgs","repos_url":"https://api.github.com/users/ethereum-mining/repos","events_url":"https://api.github.com/users/ethereum-mining/events{/privacy}","received_events_url":"https://api.github.com/users/ethereum-mining/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ethereum-mining/ethminer","description":"Ethereum miner with OpenCL, CUDA and stratum support","fork":false,"url":"https://api.github.com/repos/ethereum-mining/ethminer","forks_url":"https://api.github.com/repos/ethereum-mining/ethminer/forks","keys_url":"https://api.github.com/repos/ethereum-mining/ethminer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ethereum-mining/ethminer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ethereum-mining/ethminer/teams","hooks_url":"https://api.github.com/repos/ethereum-mining/ethminer/hooks","issue_events_url":"https://api.github.com/repos/ethereum-mining/ethminer/issues/events{/number}","events_url":"https://api.github.com/repos/ethereum-mining/ethminer/events","assignees_url":"https://api.github.com/repos/ethereum-mining/ethminer/assignees{/user}","branches_url":"https://api.github.com/repos/ethereum-mining/ethminer/branches{/branch}","tags_url":"https://api.github.com/repos/ethereum-mining/ethminer/tags","blobs_url":"https://api.github.com/repos/ethereum-mining/ethminer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ethereum-mining/ethminer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ethereum-mining/ethminer/git/refs{/sha}","trees_url":"https://api.github.com/repos/ethereum-mining/ethminer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ethereum-mining/ethminer/statuses/{sha}","languages_url":"https://api.github.com/repos/ethereum-mining/ethminer/languages","stargazers_url":"https://api.github.com/repos/ethereum-mining/ethminer/stargazers","contributors_url":"https://api.github.com/repos/ethereum-mining/ethminer/contributors","subscribers_url":"https://api.github.com/repos/ethereum-mining/ethminer/subscribers","subscription_url":"https://api.github.com/repos/ethereum-mining/ethminer/subscription","commits_url":"https://api.github.com/repos/ethereum-mining/ethminer/commits{/sha}","git_commits_url":"https://api.github.com/repos/ethereum-mining/ethminer/git/commits{/sha}","comments_url":"https://api.github.com/repos/ethereum-mining/ethminer/comments{/number}","issue_comment_url":"https://api.github.com/repos/ethereum-mining/ethminer/issues/comments{/number}","contents_url":"https://api.github.com/repos/ethereum-mining/ethminer/contents/{+path}","compare_url":"https://api.github.com/repos/ethereum-mining/ethminer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ethereum-mining/ethminer/merges","archive_url":"https://api.github.com/repos/ethereum-mining/ethminer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ethereum-mining/ethminer/downloads","issues_url":"https://api.github.com/repos/ethereum-mining/ethminer/issues{/number}","pulls_url":"https://api.github.com/repos/ethereum-mining/ethminer/pulls{/number}","milestones_url":"https://api.github.com/repos/ethereum-mining/ethminer/milestones{/number}","notifications_url":"https://api.github.com/repos/ethereum-mining/ethminer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ethereum-mining/ethminer/labels{/name}","releases_url":"https://api.github.com/repos/ethereum-mining/ethminer/releases{/id}","deployments_url":"https://api.github.com/repos/ethereum-mining/ethminer/deployments","created_at":"2017-04-22T12:13:16Z","updated_at":"2018-02-18T16:08:03Z","pushed_at":"2018-02-18T15:17:27Z","git_url":"git://github.com/ethereum-mining/ethminer.git","ssh_url":"git@github.com:ethereum-mining/ethminer.git","clone_url":"https://github.com/ethereum-mining/ethminer.git","svn_url":"https://github.com/ethereum-mining/ethminer","homepage":"","size":52389,"stargazers_count":2029,"watchers_count":2029,"language":"C++","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":534,"mirror_url":null,"archived":false,"open_issues_count":243,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":534,"open_issues":243,"watchers":2029,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ethereum-mining/ethminer/pulls/758"},"html":{"href":"https://github.com/ethereum-mining/ethminer/pull/758"},"issue":{"href":"https://api.github.com/repos/ethereum-mining/ethminer/issues/758"},"comments":{"href":"https://api.github.com/repos/ethereum-mining/ethminer/issues/758/comments"},"review_comments":{"href":"https://api.github.com/repos/ethereum-mining/ethminer/pulls/758/comments"},"review_comment":{"href":"https://api.github.com/repos/ethereum-mining/ethminer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ethereum-mining/ethminer/pulls/758/commits"},"statuses":{"href":"https://api.github.com/repos/ethereum-mining/ethminer/statuses/1f5988fbaa60072b6ab73c0fe1f8fd2adc6307a4"}},"author_association":"NONE"}}
{"actor":{"display_login":"Davesmacer"}}