thread/Slack: use std::chrono::duration

This commit is contained in:
Max Kellermann
2019-05-29 21:11:32 +02:00
parent 14cee01ba1
commit 620a39afb4
4 changed files with 10 additions and 13 deletions

View File

@@ -589,7 +589,7 @@ mpd_main_after_fork(const ConfigData &raw_config, const Config &config)
/* the MPD frontend does not care about timer slack; set it to
a huge value to allow the kernel to reduce CPU wakeups */
SetThreadTimerSlackMS(100);
SetThreadTimerSlack(std::chrono::milliseconds(100));
#ifdef ENABLE_SYSTEMD_DAEMON
sd_notify(0, "READY=1");