hdd_menu: fix hdd_sleep 'off'

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

Origin message was:
------------------
- hdd_menu: fix hdd_sleep 'off'

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2014-03-06 09:59:18 +01:00
parent 2af5c1a7c3
commit 6f8dc17343

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