{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/50564","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/50564/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/50564/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/50564/events","html_url":"https://github.com/kubernetes/kubernetes/issues/50564","id":249850463,"number":50564,"title":"Sign error in comment on resource.ScaledValue","user":{"login":"MikeSpreitzer","id":14296719,"avatar_url":"https://avatars2.githubusercontent.com/u/14296719?v=4","gravatar_id":"","url":"https://api.github.com/users/MikeSpreitzer","html_url":"https://github.com/MikeSpreitzer","followers_url":"https://api.github.com/users/MikeSpreitzer/followers","following_url":"https://api.github.com/users/MikeSpreitzer/following{/other_user}","gists_url":"https://api.github.com/users/MikeSpreitzer/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeSpreitzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeSpreitzer/subscriptions","organizations_url":"https://api.github.com/users/MikeSpreitzer/orgs","repos_url":"https://api.github.com/users/MikeSpreitzer/repos","events_url":"https://api.github.com/users/MikeSpreitzer/events{/privacy}","received_events_url":"https://api.github.com/users/MikeSpreitzer/received_events","type":"User","site_admin":false},"labels":[{"id":105146071,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/bug","name":"kind/bug","color":"e11d21","default":false},{"id":617149945,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/needs-sig","name":"needs-sig","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-13T03:52:51Z","updated_at":"2017-08-13T03:55:18Z","closed_at":null,"body":"<!-- This form is for bug reports and feature requests ONLY! \r\n\r\nIf you're looking for help check [Stack Overflow](https://stackoverflow.com/questions/tagged/kubernetes) and the [troubleshooting guide](https://kubernetes.io/docs/tasks/debug-application-cluster/troubleshooting/).\r\n-->\r\n\r\n**Is this a BUG REPORT or FEATURE REQUEST?**:\r\n\r\n> Uncomment only one, leave it on its own line: \r\n>\r\n/kind bug\r\n> /kind feature\r\n\r\n\r\n**What happened**:\r\nI invoked `ScaledValue(-9)` on a resource.Quantity, and got a result that was multiplied by a factor of 10^9.\r\n\r\n**What you expected to happen**:\r\nI expected to get a value that was multiplied by a factor of 10^-9, because the comment says \"ScaledValue returns the value of ceil(q * 10^scale)\".\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\n```\r\nq, _ := resource.ParseQuantity(\"10\")\r\ni := q.ScaledValue(-1)\r\n```\r\nprint `i`.  You will find it is 100, not 1.\r\n\r\n**Anything else we need to know?**:\r\nLook at the meaning of the `AsScaledInt64` method invoked in the integer case.  This method returns the quantity expressed as a multiple of 10^scale.  10 is 100 tenths.\r\n\r\n**Environment**:\r\n- Kubernetes version (use `kubectl version`): master\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/322020244","html_url":"https://github.com/kubernetes/kubernetes/issues/50564#issuecomment-322020244","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/50564","id":322020244,"user":{"login":"MikeSpreitzer","id":14296719,"avatar_url":"https://avatars2.githubusercontent.com/u/14296719?v=4","gravatar_id":"","url":"https://api.github.com/users/MikeSpreitzer","html_url":"https://github.com/MikeSpreitzer","followers_url":"https://api.github.com/users/MikeSpreitzer/followers","following_url":"https://api.github.com/users/MikeSpreitzer/following{/other_user}","gists_url":"https://api.github.com/users/MikeSpreitzer/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeSpreitzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeSpreitzer/subscriptions","organizations_url":"https://api.github.com/users/MikeSpreitzer/orgs","repos_url":"https://api.github.com/users/MikeSpreitzer/repos","events_url":"https://api.github.com/users/MikeSpreitzer/events{/privacy}","received_events_url":"https://api.github.com/users/MikeSpreitzer/received_events","type":"User","site_admin":false},"created_at":"2017-08-13T03:55:18Z","updated_at":"2017-08-13T03:55:18Z","body":"@kubernetes/sig-apimachinery-bugs\r\n"}}
{"actor":{"display_login":"MikeSpreitzer"}}