]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Don't call driver read_freq in LCL_ReadAbsoluteFrequency
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 14 Jun 2011 18:45:48 +0000 (20:45 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 15 Jun 2011 13:35:14 +0000 (15:35 +0200)
local.c

diff --git a/local.c b/local.c
index 76196973554ef885f2013497a9fdd25a466d19b2..12fecf4363a0edf67c70b7b5970f0dfc757793eb 100644 (file)
--- a/local.c
+++ b/local.c
@@ -358,14 +358,14 @@ LCL_GetOffsetCorrection(struct timeval *raw, double *correction, double *err)
 }
 
 /* ================================================== */
-/* This is just a simple passthrough of the system specific routine */
+/* Return current frequency */
 
 double
 LCL_ReadAbsoluteFrequency(void)
 {
   double freq;
 
-  freq = (*drv_read_freq)();
+  freq = current_freq_ppm; 
 
   /* Undo temperature compensation */
   if (temp_comp_ppm != 0.0) {