diff options
author | Max Kellermann <max@musicpd.org> | 2019-05-29 21:11:32 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-05-29 21:11:32 +0200 |
commit | 620a39afb4f68291816a98e1f831f2658b5bec17 (patch) | |
tree | 86de96f1a4cd8c0b13aa9bf84600303d6463dd03 /src/Main.cxx | |
parent | 14cee01ba1b8068a4abed60431a51e21e4bf6557 (diff) |
thread/Slack: use std::chrono::duration
Diffstat (limited to 'src/Main.cxx')
-rw-r--r-- | src/Main.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main.cxx b/src/Main.cxx index 660ffa2bc..13bb756c9 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -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"); |