hdd_menu: fix hdd_sleep 'off'

Origin commit data
------------------
Commit: ea89eae41e
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-03-06 (Thu, 06 Mar 2014)

Origin message was:
------------------
- hdd_menu: fix hdd_sleep 'off'
This commit is contained in:
vanhofen
2014-03-06 09:59:18 +01:00
parent 342552c787
commit 9d4345bed8

View File

@@ -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) {