From 620a39afb4f68291816a98e1f831f2658b5bec17 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 29 May 2019 21:11:32 +0200 Subject: thread/Slack: use std::chrono::duration --- src/Main.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Main.cxx') 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"); -- cgit v1.2.3