diff --git a/src/ncmpcpp.h b/src/ncmpcpp.h index 2cfd2112..0cb8e8df 100644 --- a/src/ncmpcpp.h +++ b/src/ncmpcpp.h @@ -31,7 +31,7 @@ using namespace NCurses; typedef std::pair string_pair; -const int ncmpcpp_window_timeout = 500; +const int ncmpcpp_window_timeout = 250; const std::string home_folder = getenv("HOME") ? getenv("HOME") : ""; diff --git a/src/status.cpp b/src/status.cpp index b2d773cc..96f265f1 100644 --- a/src/status.cpp +++ b/src/status.cpp @@ -106,9 +106,7 @@ void TraceMpdStatus() static timeval past, now; gettimeofday(&now, 0); - if (Mpd->Connected() - && ((now.tv_sec == past.tv_sec && now.tv_usec >= past.tv_usec+500000) || now.tv_sec > past.tv_sec) - ) + if (Mpd->Connected() && now.tv_sec > past.tv_sec) { Mpd->UpdateStatus(); gettimeofday(&past, 0);