mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
gui/miscsettings_menu.cpp: fix settings sectionsd config
This commit is contained in:
@@ -1030,6 +1030,7 @@ static void commandDumpStatusInformation(int /*connfd*/, char* /*data*/, const u
|
||||
"Current time: %s"
|
||||
"Hours to cache: %ld\n"
|
||||
"Hours to cache extended text: %ld\n"
|
||||
"Events to cache: %u\n"
|
||||
"Events are old %ldmin after their end time\n"
|
||||
"Number of cached services: %u\n"
|
||||
"Number of cached nvod-services: %u\n"
|
||||
@@ -1043,7 +1044,7 @@ static void commandDumpStatusInformation(int /*connfd*/, char* /*data*/, const u
|
||||
""
|
||||
#endif
|
||||
,ctime(&zeit),
|
||||
secondsToCache / (60*60L), secondsExtendedTextCache / (60*60L), oldEventsAre / 60, anzServices, anzNVODservices, anzEvents, anzNVODevents, anzMetaServices
|
||||
secondsToCache / (60*60L), secondsExtendedTextCache / (60*60L), max_events, oldEventsAre / 60, anzServices, anzNVODservices, anzEvents, anzNVODevents, anzMetaServices
|
||||
// resourceUsage.ru_maxrss, resourceUsage.ru_ixrss, resourceUsage.ru_idrss, resourceUsage.ru_isrss,
|
||||
);
|
||||
printf("%s\n", stati);
|
||||
|
@@ -274,17 +274,8 @@ int CMiscMenue::showMiscSettingsMenu()
|
||||
|
||||
int res = misc_menue.exec(NULL, "");
|
||||
|
||||
g_settings.epg_cache = atoi(epg_cache.c_str());
|
||||
g_settings.epg_extendedcache = atoi(epg_extendedcache.c_str());
|
||||
g_settings.epg_old_events = atoi(epg_old_events.c_str());
|
||||
g_settings.epg_max_events = atoi(epg_max_events.c_str());
|
||||
|
||||
delete fanNotifier;
|
||||
delete sectionsdConfigNotifier;
|
||||
#if 0
|
||||
if(cs_get_revision() > 7)
|
||||
delete miscNotifier;
|
||||
#endif
|
||||
delete miscEpgNotifier;
|
||||
delete miscEpgScanNotifier;
|
||||
return res;
|
||||
|
@@ -104,8 +104,18 @@ void COnOffNotifier::addItem(CMenuItem* menuItem)
|
||||
toDisable.push_back(menuItem);
|
||||
}
|
||||
|
||||
bool CSectionsdConfigNotifier::changeNotify(const neutrino_locale_t, void *)
|
||||
bool CSectionsdConfigNotifier::changeNotify(const neutrino_locale_t locale, void *data)
|
||||
{
|
||||
char *str = (char*) data;
|
||||
if (locale == LOCALE_MISCSETTINGS_EPG_CACHE)
|
||||
g_settings.epg_cache = atoi(str);
|
||||
else if (locale == LOCALE_MISCSETTINGS_EPG_EXTENDEDCACHE)
|
||||
g_settings.epg_extendedcache = atoi(str);
|
||||
else if (locale == LOCALE_MISCSETTINGS_EPG_OLD_EVENTS)
|
||||
g_settings.epg_old_events = atoi(str);
|
||||
else if (locale == LOCALE_MISCSETTINGS_EPG_MAX_EVENTS)
|
||||
g_settings.epg_max_events = atoi(str);
|
||||
|
||||
CNeutrinoApp::getInstance()->SendSectionsdConfig();
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user