mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 19:15:07 -05:00
Add refclocks log
This commit is contained in:
11
conf.c
11
conf.c
@@ -118,6 +118,7 @@ static int do_log_measurements = 0;
|
||||
static int do_log_statistics = 0;
|
||||
static int do_log_tracking = 0;
|
||||
static int do_log_rtc = 0;
|
||||
static int do_log_refclocks = 0;
|
||||
static int do_dump_on_exit = 0;
|
||||
static char *logdir = ".";
|
||||
static char *dumpdir = ".";
|
||||
@@ -648,6 +649,9 @@ parse_log(const char *line)
|
||||
} else if (!strncmp(line, "rtc", 3)) {
|
||||
do_log_rtc = 1;
|
||||
line += 3;
|
||||
} else if (!strncmp(line, "refclocks", 9)) {
|
||||
do_log_refclocks = 1;
|
||||
line += 9;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
@@ -1218,6 +1222,13 @@ CNF_GetLogRtc(void)
|
||||
return do_log_rtc;
|
||||
}
|
||||
|
||||
/* ================================================== */
|
||||
int
|
||||
CNF_GetLogRefclocks(void)
|
||||
{
|
||||
return do_log_refclocks;
|
||||
}
|
||||
|
||||
/* ================================================== */
|
||||
|
||||
char *
|
||||
|
||||
Reference in New Issue
Block a user