From 69303e7f67d6a22cbfe3f810353dcf3afe787c6d Mon Sep 17 00:00:00 2001 From: Flavio Martins Date: Fri, 19 Apr 2024 16:12:15 +0100 Subject: [PATCH] Shorten the message displaying outputs/s --- src/ExecuteTimeWidget.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ExecuteTimeWidget.ts b/src/ExecuteTimeWidget.ts index ceea3d8..62e99e4 100644 --- a/src/ExecuteTimeWidget.ts +++ b/src/ExecuteTimeWidget.ts @@ -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'}`; msg += ` (${outputsPerSecond.toFixed(2)} outputs/s)`; } }