Skip to content

Commit

Permalink
Merge pull request #31 from lologarithm/fix_oomavg
Browse files Browse the repository at this point in the history
v1.1.6 - Updated api impl to not return NaN for oomat when no sims oom'd
  • Loading branch information
lologarithm authored Aug 22, 2021
2 parents 5917f9c + 346ff18 commit 06e2730
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tbc/api_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,9 @@ func (aggregator *MetricsAggregator) getResult() SimResult {
result.DpsHist = aggregator.dpsHist

result.NumOom = aggregator.numOom
result.OomAtAvg = aggregator.oomAtSum / float64(aggregator.numOom)
if result.NumOom > 0 {
result.OomAtAvg = aggregator.oomAtSum / float64(aggregator.numOom)
}
result.DpsAtOomAvg = aggregator.dpsAtOomSum / numSims

result.Casts = aggregator.casts
Expand Down
2 changes: 1 addition & 1 deletion ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ <h4>Standard Elemental Build</h4>
<div id="pullout">
<div class="dtl" style="height:100%;width:100%;padding:10px">
<div id="themetoggle" style="height:20px; bottom: 10px; cursor: pointer;" onclick="toggletheme()">
<text>v1.1.5</text>
<text>v1.1.6</text>
<img id="themebulb" style="height: 20px; width: 20px" src="icons/light-bulb.svg"></img>
</div>
<div style="margin-top:10px">
Expand Down
Binary file modified ui/lib.wasm
Binary file not shown.

0 comments on commit 06e2730

Please sign in to comment.