{"action":"created","comment":{"url":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls/comments/29925479","id":29925479,"diff_hunk":"@@ -136,6 +136,8 @@ def getCPUTime( CPUNormalizationFactor ):\n   if CPUTime:\n     # This is in HS06sseconds\n     # We need to convert in real seconds\n+    if not CPUNormalizationFactor:\n+      CPUNormalizationFactor = gConfig.getValue( '/LocalSite/CPUNormalizationFactor', 0.0 )","path":"WorkloadManagementSystem/Client/CPUNormalization.py","position":5,"original_position":5,"commit_id":"7a354e87d535f0e6a21b805c4452fe36e9a93503","original_commit_id":"7a354e87d535f0e6a21b805c4452fe36e9a93503","user":{"login":"andresailer","id":2115797,"avatar_url":"https://avatars.githubusercontent.com/u/2115797?v=3","gravatar_id":"","url":"https://api.github.com/users/andresailer","html_url":"https://github.com/andresailer","followers_url":"https://api.github.com/users/andresailer/followers","following_url":"https://api.github.com/users/andresailer/following{/other_user}","gists_url":"https://api.github.com/users/andresailer/gists{/gist_id}","starred_url":"https://api.github.com/users/andresailer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresailer/subscriptions","organizations_url":"https://api.github.com/users/andresailer/orgs","repos_url":"https://api.github.com/users/andresailer/repos","events_url":"https://api.github.com/users/andresailer/events{/privacy}","received_events_url":"https://api.github.com/users/andresailer/received_events","type":"User","site_admin":false},"body":"Doesn't this cause a division by 0 and ZeroDivisionError if CPUNormalizationFactor is not set in the CS","created_at":"2015-05-08T08:58:02Z","updated_at":"2015-05-08T08:58:02Z","html_url":"https://github.com/DIRACGrid/DIRAC/pull/2361#discussion_r29925479","pull_request_url":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls/2361","_links":{"self":{"href":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls/comments/29925479"},"html":{"href":"https://github.com/DIRACGrid/DIRAC/pull/2361#discussion_r29925479"},"pull_request":{"href":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls/2361"}}},"pull_request":{"url":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls/2361","id":34989868,"html_url":"https://github.com/DIRACGrid/DIRAC/pull/2361","diff_url":"https://github.com/DIRACGrid/DIRAC/pull/2361.diff","patch_url":"https://github.com/DIRACGrid/DIRAC/pull/2361.patch","issue_url":"https://api.github.com/repos/DIRACGrid/DIRAC/issues/2361","number":2361,"state":"open","locked":false,"title":"[v6r13] Few fixes","user":{"login":"fstagni","id":785576,"avatar_url":"https://avatars.githubusercontent.com/u/785576?v=3","gravatar_id":"","url":"https://api.github.com/users/fstagni","html_url":"https://github.com/fstagni","followers_url":"https://api.github.com/users/fstagni/followers","following_url":"https://api.github.com/users/fstagni/following{/other_user}","gists_url":"https://api.github.com/users/fstagni/gists{/gist_id}","starred_url":"https://api.github.com/users/fstagni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fstagni/subscriptions","organizations_url":"https://api.github.com/users/fstagni/orgs","repos_url":"https://api.github.com/users/fstagni/repos","events_url":"https://api.github.com/users/fstagni/events{/privacy}","received_events_url":"https://api.github.com/users/fstagni/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-08T08:38:03Z","updated_at":"2015-05-08T08:58:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e6d7c3a606f60c3b710d642b61881aa8a1acf34","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls/2361/commits","review_comments_url":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls/2361/comments","review_comment_url":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DIRACGrid/DIRAC/issues/2361/comments","statuses_url":"https://api.github.com/repos/DIRACGrid/DIRAC/statuses/7a354e87d535f0e6a21b805c4452fe36e9a93503","head":{"label":"fstagni:pylintAndFixesv6r13-4","ref":"pylintAndFixesv6r13-4","sha":"7a354e87d535f0e6a21b805c4452fe36e9a93503","user":{"login":"fstagni","id":785576,"avatar_url":"https://avatars.githubusercontent.com/u/785576?v=3","gravatar_id":"","url":"https://api.github.com/users/fstagni","html_url":"https://github.com/fstagni","followers_url":"https://api.github.com/users/fstagni/followers","following_url":"https://api.github.com/users/fstagni/following{/other_user}","gists_url":"https://api.github.com/users/fstagni/gists{/gist_id}","starred_url":"https://api.github.com/users/fstagni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fstagni/subscriptions","organizations_url":"https://api.github.com/users/fstagni/orgs","repos_url":"https://api.github.com/users/fstagni/repos","events_url":"https://api.github.com/users/fstagni/events{/privacy}","received_events_url":"https://api.github.com/users/fstagni/received_events","type":"User","site_admin":false},"repo":{"id":1742442,"name":"DIRAC","full_name":"fstagni/DIRAC","owner":{"login":"fstagni","id":785576,"avatar_url":"https://avatars.githubusercontent.com/u/785576?v=3","gravatar_id":"","url":"https://api.github.com/users/fstagni","html_url":"https://github.com/fstagni","followers_url":"https://api.github.com/users/fstagni/followers","following_url":"https://api.github.com/users/fstagni/following{/other_user}","gists_url":"https://api.github.com/users/fstagni/gists{/gist_id}","starred_url":"https://api.github.com/users/fstagni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fstagni/subscriptions","organizations_url":"https://api.github.com/users/fstagni/orgs","repos_url":"https://api.github.com/users/fstagni/repos","events_url":"https://api.github.com/users/fstagni/events{/privacy}","received_events_url":"https://api.github.com/users/fstagni/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fstagni/DIRAC","description":"DIRAC Grid","fork":true,"url":"https://api.github.com/repos/fstagni/DIRAC","forks_url":"https://api.github.com/repos/fstagni/DIRAC/forks","keys_url":"https://api.github.com/repos/fstagni/DIRAC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fstagni/DIRAC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fstagni/DIRAC/teams","hooks_url":"https://api.github.com/repos/fstagni/DIRAC/hooks","issue_events_url":"https://api.github.com/repos/fstagni/DIRAC/issues/events{/number}","events_url":"https://api.github.com/repos/fstagni/DIRAC/events","assignees_url":"https://api.github.com/repos/fstagni/DIRAC/assignees{/user}","branches_url":"https://api.github.com/repos/fstagni/DIRAC/branches{/branch}","tags_url":"https://api.github.com/repos/fstagni/DIRAC/tags","blobs_url":"https://api.github.com/repos/fstagni/DIRAC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fstagni/DIRAC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fstagni/DIRAC/git/refs{/sha}","trees_url":"https://api.github.com/repos/fstagni/DIRAC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fstagni/DIRAC/statuses/{sha}","languages_url":"https://api.github.com/repos/fstagni/DIRAC/languages","stargazers_url":"https://api.github.com/repos/fstagni/DIRAC/stargazers","contributors_url":"https://api.github.com/repos/fstagni/DIRAC/contributors","subscribers_url":"https://api.github.com/repos/fstagni/DIRAC/subscribers","subscription_url":"https://api.github.com/repos/fstagni/DIRAC/subscription","commits_url":"https://api.github.com/repos/fstagni/DIRAC/commits{/sha}","git_commits_url":"https://api.github.com/repos/fstagni/DIRAC/git/commits{/sha}","comments_url":"https://api.github.com/repos/fstagni/DIRAC/comments{/number}","issue_comment_url":"https://api.github.com/repos/fstagni/DIRAC/issues/comments{/number}","contents_url":"https://api.github.com/repos/fstagni/DIRAC/contents/{+path}","compare_url":"https://api.github.com/repos/fstagni/DIRAC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fstagni/DIRAC/merges","archive_url":"https://api.github.com/repos/fstagni/DIRAC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fstagni/DIRAC/downloads","issues_url":"https://api.github.com/repos/fstagni/DIRAC/issues{/number}","pulls_url":"https://api.github.com/repos/fstagni/DIRAC/pulls{/number}","milestones_url":"https://api.github.com/repos/fstagni/DIRAC/milestones{/number}","notifications_url":"https://api.github.com/repos/fstagni/DIRAC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fstagni/DIRAC/labels{/name}","releases_url":"https://api.github.com/repos/fstagni/DIRAC/releases{/id}","created_at":"2011-05-13T08:21:03Z","updated_at":"2014-06-23T16:48:03Z","pushed_at":"2015-05-08T08:37:01Z","git_url":"git://github.com/fstagni/DIRAC.git","ssh_url":"git@github.com:fstagni/DIRAC.git","clone_url":"https://github.com/fstagni/DIRAC.git","svn_url":"https://github.com/fstagni/DIRAC","homepage":"http://diracgrid.org","size":26086,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"integration"}},"base":{"label":"DIRACGrid:rel-v6r13","ref":"rel-v6r13","sha":"900ef1b5b0b48643069d8150524080b602d6a20e","user":{"login":"DIRACGrid","id":694842,"avatar_url":"https://avatars.githubusercontent.com/u/694842?v=3","gravatar_id":"","url":"https://api.github.com/users/DIRACGrid","html_url":"https://github.com/DIRACGrid","followers_url":"https://api.github.com/users/DIRACGrid/followers","following_url":"https://api.github.com/users/DIRACGrid/following{/other_user}","gists_url":"https://api.github.com/users/DIRACGrid/gists{/gist_id}","starred_url":"https://api.github.com/users/DIRACGrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DIRACGrid/subscriptions","organizations_url":"https://api.github.com/users/DIRACGrid/orgs","repos_url":"https://api.github.com/users/DIRACGrid/repos","events_url":"https://api.github.com/users/DIRACGrid/events{/privacy}","received_events_url":"https://api.github.com/users/DIRACGrid/received_events","type":"Organization","site_admin":false},"repo":{"id":1576831,"name":"DIRAC","full_name":"DIRACGrid/DIRAC","owner":{"login":"DIRACGrid","id":694842,"avatar_url":"https://avatars.githubusercontent.com/u/694842?v=3","gravatar_id":"","url":"https://api.github.com/users/DIRACGrid","html_url":"https://github.com/DIRACGrid","followers_url":"https://api.github.com/users/DIRACGrid/followers","following_url":"https://api.github.com/users/DIRACGrid/following{/other_user}","gists_url":"https://api.github.com/users/DIRACGrid/gists{/gist_id}","starred_url":"https://api.github.com/users/DIRACGrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DIRACGrid/subscriptions","organizations_url":"https://api.github.com/users/DIRACGrid/orgs","repos_url":"https://api.github.com/users/DIRACGrid/repos","events_url":"https://api.github.com/users/DIRACGrid/events{/privacy}","received_events_url":"https://api.github.com/users/DIRACGrid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DIRACGrid/DIRAC","description":"DIRAC Grid","fork":false,"url":"https://api.github.com/repos/DIRACGrid/DIRAC","forks_url":"https://api.github.com/repos/DIRACGrid/DIRAC/forks","keys_url":"https://api.github.com/repos/DIRACGrid/DIRAC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DIRACGrid/DIRAC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DIRACGrid/DIRAC/teams","hooks_url":"https://api.github.com/repos/DIRACGrid/DIRAC/hooks","issue_events_url":"https://api.github.com/repos/DIRACGrid/DIRAC/issues/events{/number}","events_url":"https://api.github.com/repos/DIRACGrid/DIRAC/events","assignees_url":"https://api.github.com/repos/DIRACGrid/DIRAC/assignees{/user}","branches_url":"https://api.github.com/repos/DIRACGrid/DIRAC/branches{/branch}","tags_url":"https://api.github.com/repos/DIRACGrid/DIRAC/tags","blobs_url":"https://api.github.com/repos/DIRACGrid/DIRAC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DIRACGrid/DIRAC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DIRACGrid/DIRAC/git/refs{/sha}","trees_url":"https://api.github.com/repos/DIRACGrid/DIRAC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DIRACGrid/DIRAC/statuses/{sha}","languages_url":"https://api.github.com/repos/DIRACGrid/DIRAC/languages","stargazers_url":"https://api.github.com/repos/DIRACGrid/DIRAC/stargazers","contributors_url":"https://api.github.com/repos/DIRACGrid/DIRAC/contributors","subscribers_url":"https://api.github.com/repos/DIRACGrid/DIRAC/subscribers","subscription_url":"https://api.github.com/repos/DIRACGrid/DIRAC/subscription","commits_url":"https://api.github.com/repos/DIRACGrid/DIRAC/commits{/sha}","git_commits_url":"https://api.github.com/repos/DIRACGrid/DIRAC/git/commits{/sha}","comments_url":"https://api.github.com/repos/DIRACGrid/DIRAC/comments{/number}","issue_comment_url":"https://api.github.com/repos/DIRACGrid/DIRAC/issues/comments{/number}","contents_url":"https://api.github.com/repos/DIRACGrid/DIRAC/contents/{+path}","compare_url":"https://api.github.com/repos/DIRACGrid/DIRAC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DIRACGrid/DIRAC/merges","archive_url":"https://api.github.com/repos/DIRACGrid/DIRAC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DIRACGrid/DIRAC/downloads","issues_url":"https://api.github.com/repos/DIRACGrid/DIRAC/issues{/number}","pulls_url":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls{/number}","milestones_url":"https://api.github.com/repos/DIRACGrid/DIRAC/milestones{/number}","notifications_url":"https://api.github.com/repos/DIRACGrid/DIRAC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DIRACGrid/DIRAC/labels{/name}","releases_url":"https://api.github.com/repos/DIRACGrid/DIRAC/releases{/id}","created_at":"2011-04-06T11:47:53Z","updated_at":"2015-05-07T06:39:51Z","pushed_at":"2015-05-08T08:38:03Z","git_url":"git://github.com/DIRACGrid/DIRAC.git","ssh_url":"git@github.com:DIRACGrid/DIRAC.git","clone_url":"https://github.com/DIRACGrid/DIRAC.git","svn_url":"https://github.com/DIRACGrid/DIRAC","homepage":"http://diracgrid.org","size":63496,"stargazers_count":42,"watchers_count":42,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":75,"mirror_url":null,"open_issues_count":120,"forks":75,"open_issues":120,"watchers":42,"default_branch":"integration"}},"_links":{"self":{"href":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls/2361"},"html":{"href":"https://github.com/DIRACGrid/DIRAC/pull/2361"},"issue":{"href":"https://api.github.com/repos/DIRACGrid/DIRAC/issues/2361"},"comments":{"href":"https://api.github.com/repos/DIRACGrid/DIRAC/issues/2361/comments"},"review_comments":{"href":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls/2361/comments"},"review_comment":{"href":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls/2361/commits"},"statuses":{"href":"https://api.github.com/repos/DIRACGrid/DIRAC/statuses/7a354e87d535f0e6a21b805c4452fe36e9a93503"}}}}