{"action":"created","issue":{"url":"https://api.github.com/repos/beatfreaker/subdownloader/issues/1","labels_url":"https://api.github.com/repos/beatfreaker/subdownloader/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/beatfreaker/subdownloader/issues/1/comments","events_url":"https://api.github.com/repos/beatfreaker/subdownloader/issues/1/events","html_url":"https://github.com/beatfreaker/subdownloader/issues/1","id":101377046,"number":1,"title":"why you read the file twice?","user":{"login":"coolicer","id":811078,"avatar_url":"https://avatars.githubusercontent.com/u/811078?v=3","gravatar_id":"","url":"https://api.github.com/users/coolicer","html_url":"https://github.com/coolicer","followers_url":"https://api.github.com/users/coolicer/followers","following_url":"https://api.github.com/users/coolicer/following{/other_user}","gists_url":"https://api.github.com/users/coolicer/gists{/gist_id}","starred_url":"https://api.github.com/users/coolicer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolicer/subscriptions","organizations_url":"https://api.github.com/users/coolicer/orgs","repos_url":"https://api.github.com/users/coolicer/repos","events_url":"https://api.github.com/users/coolicer/events{/privacy}","received_events_url":"https://api.github.com/users/coolicer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-17T09:25:14Z","updated_at":"2015-08-18T05:04:56Z","closed_at":null,"body":"I am a new noder.when I read your source code, I found out the `getHash` method read file twice.\r\n\r\n`var s = fs.createReadStream(file, {start: 0, end: (64*1024)-1});`\r\n\r\n`var sNew = fs.createReadStream(file, {start: stats['size']-(64*1024), end: stats['size']-1});`\r\n\r\nany good point to do like this?"},"comment":{"url":"https://api.github.com/repos/beatfreaker/subdownloader/issues/comments/132072421","html_url":"https://github.com/beatfreaker/subdownloader/issues/1#issuecomment-132072421","issue_url":"https://api.github.com/repos/beatfreaker/subdownloader/issues/1","id":132072421,"user":{"login":"coolicer","id":811078,"avatar_url":"https://avatars.githubusercontent.com/u/811078?v=3","gravatar_id":"","url":"https://api.github.com/users/coolicer","html_url":"https://github.com/coolicer","followers_url":"https://api.github.com/users/coolicer/followers","following_url":"https://api.github.com/users/coolicer/following{/other_user}","gists_url":"https://api.github.com/users/coolicer/gists{/gist_id}","starred_url":"https://api.github.com/users/coolicer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolicer/subscriptions","organizations_url":"https://api.github.com/users/coolicer/orgs","repos_url":"https://api.github.com/users/coolicer/repos","events_url":"https://api.github.com/users/coolicer/events{/privacy}","received_events_url":"https://api.github.com/users/coolicer/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T05:04:56Z","updated_at":"2015-08-18T05:04:56Z","body":"@beatfreaker I think `{start: stats['size']-(64*1024), end: stats['size']-1}` is the rest of the file.Not the last 64kb."}}