From: Guillaume Pellerin Date: Mon, 27 Apr 2026 17:33:28 +0000 (+0200) Subject: add chrt and renice methods X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=13c79a6670379ebc0e411a45cd92b8c88dc60686;p=telecaster-server.git add chrt and renice methods --- diff --git a/bin/streaming/telecaster.py b/bin/streaming/telecaster.py index 0c56a89..081c795 100755 --- a/bin/streaming/telecaster.py +++ b/bin/streaming/telecaster.py @@ -305,6 +305,12 @@ class TeleCaster(Thread): if not self.dry_run: command.start() + def chrt(self, pid): + os.system("sudo chrt -p 80 " + str(pid)) + + def renice(self, pid): + os.system("sudo renice -11 " + str(pid)) + def run(self): if self.engine: self.engine_start()