{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/1166","repository_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs","labels_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/1166/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/1166/comments","events_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/1166/events","html_url":"https://github.com/rust-lang-nursery/rustup.rs/issues/1166","id":235935879,"number":1166,"title":"Download speed becomes absurdly high for 6 seconds after resuming from a partial download","user":{"login":"kennytm","id":103023,"avatar_url":"https://avatars2.githubusercontent.com/u/103023?v=3","gravatar_id":"","url":"https://api.github.com/users/kennytm","html_url":"https://github.com/kennytm","followers_url":"https://api.github.com/users/kennytm/followers","following_url":"https://api.github.com/users/kennytm/following{/other_user}","gists_url":"https://api.github.com/users/kennytm/gists{/gist_id}","starred_url":"https://api.github.com/users/kennytm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennytm/subscriptions","organizations_url":"https://api.github.com/users/kennytm/orgs","repos_url":"https://api.github.com/users/kennytm/repos","events_url":"https://api.github.com/users/kennytm/events{/privacy}","received_events_url":"https://api.github.com/users/kennytm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-14T16:22:10Z","updated_at":"2017-06-19T09:26:32Z","closed_at":null,"body":"Repro step:\r\n\r\n1. Download anything (e.g. `rustup update`, `rustup add target`, etc.)\r\n2. When download is partially complete (say 50%), Ctrl+C to kill it\r\n3. Resume download (run step 1 again).\r\n4. The download will start from 50%, and the speedometer extremely high, and the ETA being misleadingly short. The numbers will become normal after a few seconds.\r\n\r\nDemo at https://asciinema.org/a/b5ayrzn7naj6td6qegq0xxyql. The speed should be around ~100 KiB/s, but at 00:59 where the download is resumed, the speed was reported to be ~1.0 MiB/s for 6 seconds, and suddenly goes back to ~100 KiB/s at 01:05.\r\n\r\nIt seems the speed calculation include the partially downloaded bytes, which it should not."},"comment":{"url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/comments/309386849","html_url":"https://github.com/rust-lang-nursery/rustup.rs/issues/1166#issuecomment-309386849","issue_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/1166","id":309386849,"user":{"login":"jelford","id":205097,"avatar_url":"https://avatars1.githubusercontent.com/u/205097?v=3","gravatar_id":"","url":"https://api.github.com/users/jelford","html_url":"https://github.com/jelford","followers_url":"https://api.github.com/users/jelford/followers","following_url":"https://api.github.com/users/jelford/following{/other_user}","gists_url":"https://api.github.com/users/jelford/gists{/gist_id}","starred_url":"https://api.github.com/users/jelford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelford/subscriptions","organizations_url":"https://api.github.com/users/jelford/orgs","repos_url":"https://api.github.com/users/jelford/repos","events_url":"https://api.github.com/users/jelford/events{/privacy}","received_events_url":"https://api.github.com/users/jelford/received_events","type":"User","site_admin":false},"created_at":"2017-06-19T09:26:32Z","updated_at":"2017-06-19T09:26:32Z","body":"You're exactly right: the code that processes the previously downloaded part for checksumming purposes is hooked into the same notifier that keeps track of download progress. It shouldn't be too difficult to separate them out. \r\n\r\nOut of interest, is this causing actual problems (apart from reporting obviously false information...)?"}}
{"actor":{"display_login":"jelford"}}