Skip to content

Commit

Permalink
fix host count UI
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpassmore committed Oct 30, 2024
1 parent 8ff9a1c commit a520424
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webcontent/progress.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h2 id="hosts-running"></h2>
<div class="card">
<p class="subtext">Run In Progress</p>
<br/>
<h2 id="is-running">NO</h2>
<h2 id="is-running">No</h2>
</div>
</div>
<h2>Summary Stats</h2>
Expand Down Expand Up @@ -55,9 +55,9 @@ <h2>Failed Jobs</h2>
const dataObj = await response.json();
document.getElementById("hosts-running").innerText = dataObj.host_count
if (dataObj.is_running === "true") {
document.getElementById("hosts-running").innerText = "Yes"
document.getElementById("is-running").innerText = "Yes"
} else {
document.getElementById("hosts-running").innerText = "No"
document.getElementById("is-running").innerText = "No"
}
const blocksPercent = Math.round(dataObj.blocks_processed / dataObj.total_blocks * 100)
document.getElementById("blocks-procesed").innerText = blocksPercent + '%'
Expand Down

0 comments on commit a520424

Please sign in to comment.