fix bug in piece printing in client_test
This commit is contained in:
parent
945eef4c4d
commit
85d1d9c85e
|
@ -1180,12 +1180,14 @@ void print_piece(libtorrent::partial_piece_info* pp
|
||||||
else { color = esc("0"); chr = ' '; }
|
else { color = esc("0"); chr = ' '; }
|
||||||
}
|
}
|
||||||
if (last_color == 0 || strcmp(last_color, color) != 0)
|
if (last_color == 0 || strcmp(last_color, color) != 0)
|
||||||
|
{
|
||||||
snprintf(str, sizeof(str), "%s%c", color, chr);
|
snprintf(str, sizeof(str), "%s%c", color, chr);
|
||||||
|
out += str;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
out += chr;
|
out += chr;
|
||||||
|
|
||||||
last_color = color;
|
last_color = color;
|
||||||
out += str;
|
|
||||||
}
|
}
|
||||||
out += esc("0");
|
out += esc("0");
|
||||||
out += "]";
|
out += "]";
|
||||||
|
|
Loading…
Reference in New Issue