Skip to content

Commit

Permalink
improvements to #57
Browse files Browse the repository at this point in the history
  • Loading branch information
fohristiwhirl committed Aug 10, 2019
1 parent d6a0b07 commit 0b83bf1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions 80_info.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,11 @@ function NewInfoHandler() {
this.last_drawn_version = null;
};

ih.draw_statusbox = function(leela_maybe_running, searchmoves, readyok_required) {
ih.draw_statusbox = function(leela_maybe_running, searchmoves, syncs_needed) {

if (typeof readyok_required === "number" && readyok_required > 2) {
if (typeof syncs_needed === "number" && syncs_needed > 1) {

statusbox.innerHTML = `<span class="yellow">Out of sync: ${readyok_required}</span>`;
statusbox.innerHTML = `<span class="gray">Out of sync: ${syncs_needed}</span>`;

} else if (typeof config.search_nodes === "number" && (searchmoves.length === 1)) {

Expand All @@ -326,9 +326,9 @@ function NewInfoHandler() {
}
};

ih.draw_infobox = function(mouse_point, active_square, leela_maybe_running, active_colour, searchmoves, hoverdraw_div, readyok_required) {
ih.draw_infobox = function(mouse_point, active_square, leela_maybe_running, active_colour, searchmoves, hoverdraw_div, syncs_needed) {

ih.draw_statusbox(leela_maybe_running, searchmoves, readyok_required);
ih.draw_statusbox(leela_maybe_running, searchmoves, syncs_needed);

// Display stderr and return if we've never seen any info...

Expand Down
2 changes: 1 addition & 1 deletion 95_renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ function NewRenderer() {
this.node.get_board().active,
this.searchmoves,
this.hoverdraw_div,
this.engine.readyok_required);
Math.max(this.engine.readyok_required, this.engine.bestmove_required));

debug.draw -= 1;
};
Expand Down

0 comments on commit 0b83bf1

Please sign in to comment.