Skip to content

Commit

Permalink
Fix mean: 0 in previews
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Sep 5, 2021
1 parent cbcba75 commit 203a479
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/run/preview/results/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { updateCombinationEnd } from './duration.js'
// - And the size of table should not change between previews.
// When uncalibrated, we skip it since no stats would be reported anyway.
// - We wait until calibration before removing the start description.
// - We also never report nor stop measuring when `median` is `0`
// - We also never report nor stop measuring when `mean` is `0`
export const updatePreviewStats = async function ({
stats,
previewState,
Expand All @@ -38,8 +38,8 @@ export const updatePreviewStats = async function ({
await updatePreview(previewState)
}

const shouldSkipPreview = function ({ quiet }, { samples, median }) {
return quiet || samples === 0 || median === 0
const shouldSkipPreview = function ({ quiet }, { samples, mean }) {
return quiet || samples === 0 || mean === 0
}

const updateResultStats = async function ({
Expand Down

0 comments on commit 203a479

Please sign in to comment.