From d68ce2f490a8cfaf35499150844b81c29e516a43 Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Fri, 12 Jul 2024 00:01:18 +0000 Subject: [PATCH] stream/types: only use `nice` if parsed `processingPriority` is a number for some reason, isNaN(true) -> false, which is technically correct, but what the fuck... --- src/modules/stream/types.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/stream/types.js b/src/modules/stream/types.js index af4aa2e5..071cb6d0 100644 --- a/src/modules/stream/types.js +++ b/src/modules/stream/types.js @@ -25,7 +25,7 @@ function killProcess(p) { } function getCommand(args) { - if (!isNaN(env.processingPriority)) { + if (typeof env.processingPriority === 'number' && !isNaN(env.processingPriority)) { return ['nice', ['-n', env.processingPriority.toString(), ffmpeg, ...args]] } return [ffmpeg, args]