]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Fix logged offset in manual reference
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 3 Feb 2012 13:58:24 +0000 (14:58 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 3 Feb 2012 14:23:25 +0000 (15:23 +0100)
reference.c

index 27837ad0a769a76bc6e42ffd9f8589501642235c..de48a0614ad24f22934d71dad2c1826490a47981 100644 (file)
@@ -48,7 +48,6 @@ static int our_stratum;
 static uint32_t our_ref_id;
 static IPAddr our_ref_ip;
 struct timeval our_ref_time; /* Stored relative to reference, NOT local time */
-static double our_offset;
 static double our_skew;
 static double our_residual_freq;
 static double our_root_delay;
@@ -557,6 +556,7 @@ REF_SetReference(int stratum,
   double old_weight, new_weight, sum_weight;
   double delta_freq1, delta_freq2;
   double skew1, skew2;
+  double our_offset;
   double our_frequency;
   double abs_freq_ppm;
   double update_interval;
@@ -745,7 +745,7 @@ REF_SetManualReference
             our_stratum,
             abs_freq_ppm,
             1.0e6*our_skew,
-            our_offset);
+            offset);
 
   if (drift_file) {
     update_drift_file(abs_freq_ppm, our_skew);