summaryrefslogtreecommitdiff
path: root/src/Main.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-05-29 21:11:32 +0200
committerMax Kellermann <max@musicpd.org>2019-05-29 21:11:32 +0200
commit620a39afb4f68291816a98e1f831f2658b5bec17 (patch)
tree86de96f1a4cd8c0b13aa9bf84600303d6463dd03 /src/Main.cxx
parent14cee01ba1b8068a4abed60431a51e21e4bf6557 (diff)
thread/Slack: use std::chrono::duration
Diffstat (limited to 'src/Main.cxx')
-rw-r--r--src/Main.cxx2
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");