- hdd_menu: fix hdd_sleep 'off'

This commit is contained in:
svenhoefer
2014-03-06 09:59:18 +01:00
parent e6a004be87
commit ea89eae41e

View File

@@ -326,7 +326,7 @@ int CHDDDestExec::exec(CMenuTarget* /*parent*/, const std::string&)
const char hdidle[] = "/sbin/hd-idle"; const char hdidle[] = "/sbin/hd-idle";
bool have_hdidle = !access(hdidle, X_OK); 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; g_settings.hdd_sleep = 60;
if (have_hdidle) { if (have_hdidle) {