Skip to content

Commit

Permalink
Shorten the message displaying outputs/s
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviomartins committed Apr 19, 2024
1 parent cd6d9a3 commit 69303e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ExecuteTimeWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ export default class ExecuteTimeWidget extends Widget {
const numberOfOutputs = cell.model.outputs.length;
if (this._settings.showOutputsPerSecond && numberOfOutputs > 0) {
const outputsPerSecond = executionsPerSecond / numberOfOutputs;
msg += ` and generated ${numberOfOutputs} output(s)`;
msg += ` displaying ${numberOfOutputs} output${numberOfOutputs === 1 ? '' : 's'}`;

Check failure on line 334 in src/ExecuteTimeWidget.ts

View workflow job for this annotation

GitHub Actions / build

Replace `numberOfOutputs·===·1·?·''·:·'s'` with `⏎··············numberOfOutputs·===·1·?·''·:·'s'⏎············`
msg += ` (${outputsPerSecond.toFixed(2)} outputs/s)`;
}
}
Expand Down

0 comments on commit 69303e7

Please sign in to comment.