mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-12 16:46:42 +02:00
changed default process priority to -3
This commit is contained in:
parent
1c44c9128b
commit
82c0070233
4 changed files with 6 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
VERSION = 0.2.91
|
||||
VERSION = 0.2.92
|
||||
TARGET = snapclient
|
||||
SHELL = /bin/bash
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ int main (int argc, char *argv[])
|
|||
("ip,i", po::value<string>(&ip), "server IP")
|
||||
("port,p", po::value<size_t>(&port)->default_value(98765), "server port")
|
||||
("soundcard,s", po::value<string>(&soundcard)->default_value("default"), "index or name of the soundcard")
|
||||
("daemon,d", po::value<int>(&runAsDaemon)->implicit_value(-5), "daemonize, optional process priority [-20..19]")
|
||||
("daemon,d", po::value<int>(&runAsDaemon)->implicit_value(-3), "daemonize, optional process priority [-20..19]")
|
||||
("latency", po::value<size_t>(&latency)->default_value(0), "latency of the soundcard")
|
||||
;
|
||||
|
||||
|
@ -127,7 +127,7 @@ int main (int argc, char *argv[])
|
|||
if (runAsDaemon < -20)
|
||||
runAsDaemon = -20;
|
||||
else if (runAsDaemon > 19)
|
||||
runAsDaemon = 10;
|
||||
runAsDaemon = 19;
|
||||
setpriority(PRIO_PROCESS, 0, runAsDaemon);
|
||||
logS(kLogNotice) << "daemon started" << std::endl;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
VERSION = 0.2.91
|
||||
VERSION = 0.2.92
|
||||
TARGET = snapserver
|
||||
SHELL = /bin/bash
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ int main(int argc, char* argv[])
|
|||
("sampleformat,s", po::value<string>(&sampleFormat)->default_value("44100:16:2"), "sample format")
|
||||
("codec,c", po::value<string>(&settings.codec)->default_value("flac"), "transport codec [flac|ogg|pcm][:options]. Type codec:? to get codec specific options")
|
||||
("fifo,f", po::value<string>(&settings.fifoName)->default_value("/tmp/snapfifo"), "name of the input fifo file")
|
||||
("daemon,d", po::value<int>(&runAsDaemon)->implicit_value(-5), "daemonize, optional process priority [-20..19]")
|
||||
("daemon,d", po::value<int>(&runAsDaemon)->implicit_value(-3), "daemonize, optional process priority [-20..19]")
|
||||
("buffer,b", po::value<int32_t>(&settings.bufferMs)->default_value(1000), "buffer [ms]")
|
||||
;
|
||||
|
||||
|
@ -108,7 +108,7 @@ int main(int argc, char* argv[])
|
|||
if (runAsDaemon < -20)
|
||||
runAsDaemon = -20;
|
||||
else if (runAsDaemon > 19)
|
||||
runAsDaemon = 10;
|
||||
runAsDaemon = 19;
|
||||
setpriority(PRIO_PROCESS, 0, runAsDaemon);
|
||||
logS(kLogNotice) << "daemon started." << endl;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue