From 18271fb616bb240aa467672b2d1f21bd7b7507cd Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 29 Mar 2009 16:56:09 +0200 Subject: [PATCH] revert back to polling mpd twice per second --- src/status.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/status.cpp b/src/status.cpp index 3aa94f2c..b7915cad 100644 --- a/src/status.cpp +++ b/src/status.cpp @@ -115,7 +115,9 @@ void TraceMpdStatus() static timeval past, now; gettimeofday(&now, 0); - if (Mpd->Connected() && now.tv_sec > past.tv_sec) + if (Mpd->Connected() + && ((now.tv_sec == past.tv_sec && now.tv_usec >= past.tv_usec+500000) || now.tv_sec > past.tv_sec) + ) { Mpd->UpdateStatus(); BlockItemListUpdate = 0;