-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:
satbaby
2011-02-25 18:32:30 +00:00
parent 302ea02767
commit 036629aaaf
5 changed files with 11 additions and 11 deletions

View File

@@ -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;
}