Fix empty lines in generation timer

47b06b4978570e46b3d4c66a6b47b3020940149e

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/script.js+1 -1
@@ -2597,7 +2597,7 @@ function formatGenerationTimer(gen_started, gen_finished, tokenCount, reasoningD
2597 `Time to generate: ${seconds} seconds`,2597 `Time to generate: ${seconds} seconds`,
2598 reasoningDuration > 0 ? `Time to think: ${reasoningDuration / 1000} seconds` : '',2598 reasoningDuration > 0 ? `Time to think: ${reasoningDuration / 1000} seconds` : '',
2599 tokenCount > 0 ? `Token rate: ${Number(tokenCount / seconds).toFixed(1)} t/s` : '',2599 tokenCount > 0 ? `Token rate: ${Number(tokenCount / seconds).toFixed(1)} t/s` : '',
2600 ].join('\n');2600 ].filter(x => x).join('\n').trim();
26012601
2602 if (isNaN(seconds) || seconds < 0) {2602 if (isNaN(seconds) || seconds < 0) {
2603 return { timerValue: '', timerTitle };2603 return { timerValue: '', timerTitle };