Name: mused
Summary: A multimedia daemon
-Version: 0.3.187
+Version: 0.3.188
Release: 0
Group: System/Libraries
License: Apache-2.0
%if ("%{_vd_cfg_product_type}" == "AUDIO") || ("%{_vd_cfg_product_type}" == "TV") || ("%{_vd_cfg_product_type}" == "LFD") || ("%{_vd_cfg_product_type}" == "HTV") || ("%{_vd_cfg_product_type}" == "AV") || ("%{_vd_cfg_product_type}" == "IWB") || ("%{_vd_cfg_product_type}" == "WALL")
%cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DLIBDIR=%{_libdir} -DTZ_SYS_DATA=%TZ_SYS_DATA -DMUSE_REGISTER_VIP=1 -DMUSE_TTRACE_ENABLE=1 -DMUSE_LWIPC_ENABLE=1 -DMUSE_BOOST_ENABLE=1
%else
-export CFLAGS+=" -DMUSE_USE_POWER_OFF_STATE_CHANGE -DMUSE_USE_WATCHDOG"
+export CFLAGS+=" -DMUSE_USE_POWER_OFF_STATE_CHANGE -DMUSE_USE_WATCHDOG -DMUSE_PUBLIC"
%cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DLIBDIR=%{_libdir} -DTZ_SYS_DATA=%TZ_SYS_DATA -DMUSE_GTESTS_BUILD=%{?gtests:1}%{!?gtests:0} -DMUSE_STORAGE_ENABLE=1
%endif
%endif
void ms_check_cpu_memory(void)
{
int used_pss, memory_threshold, cpu_usage, cpu_threshold;
-#ifndef MUSE_LITE
+#ifdef MUSE_PUBLIC
char err_msg[MUSE_MSG_LEN_MAX] = {'\0',};
#endif
ms_connection_t *connection = NULL;
used_pss = ms_system_get_memory_usage(muse_server->pid);
cpu_usage = muse_core_get_process_cpu_usage(muse_server->pid);
- LOGW("[%d] Proportional set size %d (KByte) (CPU %d %%)", muse_server->pid, used_pss, cpu_usage);
-
memory_threshold = ms_config_get_memory_threshold();
cpu_threshold = ms_config_get_cpu_threshold();
LOGW("[%d] Proportional set size %d ( > %d ? ) KB (CPU %d %%)", muse_server->pid, used_pss, memory_threshold, cpu_usage);
-#ifndef MUSE_LITE
+#ifdef MUSE_PUBLIC
if (used_pss >= memory_threshold) {
ms_log_process_info(muse_server->pid);