コード例 #1
0
ファイル: log.c プロジェクト: klkblake/serval-dna
static int show_time()
{
    if (flag_show_time < 0 && !confLocked())
        flag_show_time = confValueGetBoolean("log.show_time", 0);
    return flag_show_time;
}
コード例 #2
0
ファイル: log.c プロジェクト: klkblake/serval-dna
static int show_pid()
{
    if (flag_show_pid < 0 && !confLocked())
        flag_show_pid = confValueGetBoolean("log.show_pid", 0);
    return flag_show_pid;
}
コード例 #3
0
ファイル: rhizome.c プロジェクト: rom1v/serval-dna
/* Configure rhizome.
   @author Andrew Bettison <*****@*****.**>
 */
int rhizome_configure()
{
  rhizome_enabled_flag = confValueGetBoolean("rhizome.enable", 1);
  rhizome_fetch_interval_ms = (int) confValueGetInt64Range("rhizome.fetch_interval_ms", 3000, 1, 3600000);
  return 0;
}