mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-07 03:25:06 -05:00
Rename SCH_GetFileReadyTime() and extend it to return raw time
This commit is contained in:
12
sched.c
12
sched.c
@@ -219,11 +219,15 @@ SCH_RemoveInputFileHandler(int fd)
|
||||
/* ================================================== */
|
||||
|
||||
void
|
||||
SCH_GetFileReadyTime(struct timeval *tv, double *err)
|
||||
SCH_GetLastEventTime(struct timeval *cooked, double *err, struct timeval *raw)
|
||||
{
|
||||
*tv = last_select_ts;
|
||||
if (err)
|
||||
*err = last_select_ts_err;
|
||||
if (cooked) {
|
||||
*cooked = last_select_ts;
|
||||
if (err)
|
||||
*err = last_select_ts_err;
|
||||
}
|
||||
if (raw)
|
||||
*raw = last_select_ts_raw;
|
||||
}
|
||||
|
||||
/* ================================================== */
|
||||
|
||||
Reference in New Issue
Block a user