mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-05 20:58:33 +02:00
system/settings: use integers for shutdown_count/_min
Signed-off-by: Jacek Jendrzej <crashdvb@googlemail.com>
This commit is contained in:
@@ -61,7 +61,7 @@ int CSleepTimerWidget::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
parent->hide();
|
||||
|
||||
if(permanent) {
|
||||
strcpy(value,g_settings.shutdown_min);
|
||||
sprintf(value,"%03d", g_settings.shutdown_min);
|
||||
} else {
|
||||
shutdown_min = g_Timerd->getSleepTimerRemaining(); // remaining shutdown time?
|
||||
sprintf(value,"%03d", shutdown_min);
|
||||
@@ -100,8 +100,8 @@ int CSleepTimerWidget::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
|
||||
int new_val = atoi(value);
|
||||
if(permanent) {
|
||||
sprintf(g_settings.shutdown_min,"%03d", new_val);
|
||||
printf("permanent sleeptimer min: %s\n", g_settings.shutdown_min);
|
||||
g_settings.shutdown_min = new_val;
|
||||
printf("permanent sleeptimer min: %d\n", g_settings.shutdown_min);
|
||||
}
|
||||
else if(shutdown_min != new_val) {
|
||||
shutdown_min = new_val;
|
||||
|
Reference in New Issue
Block a user