mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
Merge remote-tracking branch 'check/next-cc'
Lightly tested only...
This commit is contained in:
@@ -76,8 +76,8 @@ void* SHTDCNT::TimeThread(void *)
|
||||
|
||||
void SHTDCNT::init()
|
||||
{
|
||||
shutdown_cnt = atoi(g_settings.shutdown_count) * 60;
|
||||
sleep_cnt = atoi(g_settings.shutdown_min)*60;
|
||||
shutdown_cnt = g_settings.shutdown_count * 60;
|
||||
sleep_cnt = g_settings.shutdown_min * 60;
|
||||
thread_running = true;
|
||||
if (pthread_create (&thrTime, NULL, TimeThread, NULL) != 0 )
|
||||
{
|
||||
@@ -90,7 +90,7 @@ void SHTDCNT::init()
|
||||
void SHTDCNT::shutdown_counter()
|
||||
{
|
||||
static bool sleeptimer_active = true;
|
||||
if (atoi(g_settings.shutdown_count) > 0)
|
||||
if (g_settings.shutdown_count > 0)
|
||||
{
|
||||
if ((CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_standby) && (!CNeutrinoApp::getInstance ()->recordingstatus))
|
||||
{
|
||||
@@ -110,11 +110,11 @@ void SHTDCNT::shutdown_counter()
|
||||
else
|
||||
{
|
||||
// reset counter
|
||||
shutdown_cnt = atoi(g_settings.shutdown_count) * 60;
|
||||
shutdown_cnt = g_settings.shutdown_count * 60;
|
||||
}
|
||||
}
|
||||
|
||||
if(atoi(g_settings.shutdown_min) > 0) {
|
||||
if(g_settings.shutdown_min > 0) {
|
||||
if(sleep_cnt > 0) {
|
||||
sleeptimer_active = true;
|
||||
sleep_cnt--;
|
||||
@@ -133,5 +133,5 @@ void SHTDCNT::shutdown_counter()
|
||||
|
||||
void SHTDCNT::resetSleepTimer()
|
||||
{
|
||||
sleep_cnt = atoi(g_settings.shutdown_min)*60;
|
||||
sleep_cnt = g_settings.shutdown_min * 60;
|
||||
}
|
||||
|
Reference in New Issue
Block a user