From ea89eae41eccccdba4430852ded7fbbcbb8f228f Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Thu, 6 Mar 2014 09:59:18 +0100 Subject: [PATCH] - hdd_menu: fix hdd_sleep 'off' --- src/gui/hdd_menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/hdd_menu.cpp b/src/gui/hdd_menu.cpp index 7b9e0c734..d86051395 100644 --- a/src/gui/hdd_menu.cpp +++ b/src/gui/hdd_menu.cpp @@ -326,7 +326,7 @@ int CHDDDestExec::exec(CMenuTarget* /*parent*/, const std::string&) const char hdidle[] = "/sbin/hd-idle"; bool have_hdidle = !access(hdidle, X_OK); - if (g_settings.hdd_sleep < 60) + if (g_settings.hdd_sleep > 0 && g_settings.hdd_sleep < 60) g_settings.hdd_sleep = 60; if (have_hdidle) {