static clock_t clock_tiks = sysconf (_SC_CLK_TCK);
clock_t curr_tiks = times (&tiks_buf);
clock_t secs = (curr_tiks - start_tiks) / clock_tiks;
- //LOGE ("time second:%f", secs);
+ double min_restart_interval = scim_global_config_read (String (SCIM_GLOBAL_CONFIG_MINIMUM_RESTART_INTERVAL), (double)MIN_REPEAT_TIME);
static String restart_uuid;
- if (restart_uuid != uuid || secs > MIN_REPEAT_TIME) {
+ LOGW("time second: %ld, restart inverval : %f", secs, min_restart_interval);
+ if (restart_uuid != uuid || secs > min_restart_interval) {
scim_usleep (100000);
int client;
#define SCIM_GLOBAL_CONFIG_LAUNCH_WEB_SERVER "/LaunchWebServer"
#define SCIM_GLOBAL_CONFIG_QUICK_PANEL_ICON_PATH "/QuickpanelIconPath"
#define SCIM_GLOBAL_CONFIG_ENABLE_AUTO_RESTART_ISE "/EnableAutoRestartIse"
+#define SCIM_GLOBAL_CONFIG_MINIMUM_RESTART_INTERVAL "/MinimumRestartInterval"
#define ISF_CONFIG_HARDWARE_KEYBOARD_DETECT "/isf/hw_keyboard_detect"