Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage memory leak fix #249

Merged
merged 5 commits into from Jan 21, 2015
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

cmd: paint reserved blocks in blue

  • Loading branch information
astro committed Jan 21, 2015
commit ce16c23c4ae99fe24de58b002760cf724ff9313c
@@ -451,7 +451,19 @@ function drawTorrent (torrent) {
}
var bar = ''
for (var j = 0; j < piece.blocks.length; j++) {
bar += piece.blocks[j] ? '{green:█}' : '{red:█}';
switch(piece.blocks[j]) {
case 0:
bar += '{red:█}';
break;
case 1:
bar += '{blue:█}';
break;
case 2:
bar += '{green:█}';
break;
default:
throw 'Invalid block state: ' + piece.blocks[j]
}
}
clivas.line('{4+cyan:' + i + '} ' + bar);
linesremaining -= 1
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.