{"action":"created","issue":{"url":"https://api.github.com/repos/dan200/ComputerCraft/issues/10","labels_url":"https://api.github.com/repos/dan200/ComputerCraft/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/dan200/ComputerCraft/issues/10/comments","events_url":"https://api.github.com/repos/dan200/ComputerCraft/issues/10/events","html_url":"https://github.com/dan200/ComputerCraft/issues/10","id":76873619,"number":10,"title":"sleep() doesn't work right.","user":{"login":"SoniEx2","id":1779619,"avatar_url":"https://avatars.githubusercontent.com/u/1779619?v=3","gravatar_id":"","url":"https://api.github.com/users/SoniEx2","html_url":"https://github.com/SoniEx2","followers_url":"https://api.github.com/users/SoniEx2/followers","following_url":"https://api.github.com/users/SoniEx2/following{/other_user}","gists_url":"https://api.github.com/users/SoniEx2/gists{/gist_id}","starred_url":"https://api.github.com/users/SoniEx2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SoniEx2/subscriptions","organizations_url":"https://api.github.com/users/SoniEx2/orgs","repos_url":"https://api.github.com/users/SoniEx2/repos","events_url":"https://api.github.com/users/SoniEx2/events{/privacy}","received_events_url":"https://api.github.com/users/SoniEx2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-15T22:13:32Z","updated_at":"2015-05-20T20:16:44Z","closed_at":"2015-05-20T20:16:44Z","body":"http://www.computercraft.info/forums2/index.php?/topic/22861-1710-sleep-sleeping-for-incorrect-amount-of-ticks/\r\n\r\nA workaround is to call sleep(0.05) in a loop:\r\n\r\n```lua\r\nfunction fixsleep(n)\r\n  sleep(n % 0.05) -- at least a 1-tick sleep\r\n  for i=2,math.floor(n * 20) do\r\n    sleep(0.05)\r\n  end\r\nend\r\n```"},"comment":{"url":"https://api.github.com/repos/dan200/ComputerCraft/issues/comments/104022658","html_url":"https://github.com/dan200/ComputerCraft/issues/10#issuecomment-104022658","issue_url":"https://api.github.com/repos/dan200/ComputerCraft/issues/10","id":104022658,"user":{"login":"dan200","id":1956716,"avatar_url":"https://avatars.githubusercontent.com/u/1956716?v=3","gravatar_id":"","url":"https://api.github.com/users/dan200","html_url":"https://github.com/dan200","followers_url":"https://api.github.com/users/dan200/followers","following_url":"https://api.github.com/users/dan200/following{/other_user}","gists_url":"https://api.github.com/users/dan200/gists{/gist_id}","starred_url":"https://api.github.com/users/dan200/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan200/subscriptions","organizations_url":"https://api.github.com/users/dan200/orgs","repos_url":"https://api.github.com/users/dan200/repos","events_url":"https://api.github.com/users/dan200/events{/privacy}","received_events_url":"https://api.github.com/users/dan200/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T20:16:44Z","updated_at":"2015-05-20T20:16:44Z","body":"fixed"}}