mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
-fix menu show min in shutdown timer
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1205 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -64,7 +64,7 @@ void* SHTDCNT::TimeThread(void *)
|
||||
void SHTDCNT::init()
|
||||
{
|
||||
shutdown_cnt = atoi(g_settings.shutdown_count) * 60;
|
||||
sleep_cnt = g_settings.shutdown_min*60;
|
||||
sleep_cnt = atoi(g_settings.shutdown_min)*60;
|
||||
if (pthread_create (&thrTime, NULL, TimeThread, NULL) != 0 )
|
||||
{
|
||||
perror("[SHTDCNT]: pthread_create(TimeThread)");
|
||||
@@ -99,7 +99,7 @@ void SHTDCNT::shutdown_counter()
|
||||
}
|
||||
}
|
||||
|
||||
if(g_settings.shutdown_min > 0) {
|
||||
if(atoi(g_settings.shutdown_min) > 0) {
|
||||
if(sleep_cnt > 0) {
|
||||
sleeptimer_active = true;
|
||||
sleep_cnt--;
|
||||
@@ -113,5 +113,5 @@ void SHTDCNT::shutdown_counter()
|
||||
|
||||
void SHTDCNT::resetSleepTimer()
|
||||
{
|
||||
sleep_cnt = g_settings.shutdown_min*60;
|
||||
sleep_cnt = atoi(g_settings.shutdown_min)*60;
|
||||
}
|
||||
|
Reference in New Issue
Block a user