revert back to polling mpd twice per second

master
Andrzej Rybczak 17 years ago
parent 1acca770db
commit 18271fb616
  1. 4
      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;

Loading…
Cancel
Save