mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:35:06 -05:00
util: modify UTI_*ToDouble functions to return double directly
This commit is contained in:
4
smooth.c
4
smooth.c
@@ -103,7 +103,7 @@ get_smoothing(struct timespec *now, double *poffset, double *pfreq,
|
||||
double elapsed, length, offset, freq, wander;
|
||||
int i;
|
||||
|
||||
UTI_DiffTimespecsToDouble(&elapsed, now, &last_update);
|
||||
elapsed = UTI_DiffTimespecsToDouble(now, &last_update);
|
||||
|
||||
offset = smooth_offset;
|
||||
freq = smooth_freq;
|
||||
@@ -327,7 +327,7 @@ SMT_GetSmoothingReport(RPT_SmoothingReport *report, struct timespec *now)
|
||||
report->freq_ppm *= -1.0e6;
|
||||
report->wander_ppm *= -1.0e6;
|
||||
|
||||
UTI_DiffTimespecsToDouble(&elapsed, now, &last_update);
|
||||
elapsed = UTI_DiffTimespecsToDouble(now, &last_update);
|
||||
if (!locked && elapsed >= 0.0) {
|
||||
for (i = 0, length = 0.0; i < NUM_STAGES; i++)
|
||||
length += stages[i].length;
|
||||
|
||||
Reference in New Issue
Block a user