]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Don't log error on opening driftfile
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 15 Feb 2011 15:56:30 +0000 (16:56 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 15 Feb 2011 15:56:30 +0000 (16:56 +0100)
Log frequency and skew values read from the driftfile instead.

reference.c

index 09f59afeaeb8421f83511a9eab4e439657f2d809..146fc87a2586cd91d7b5f3ca6be8890ea1a2e5de 100644 (file)
@@ -138,6 +138,7 @@ REF_Initialise(void)
           /* We have read valid data */
           our_frequency_ppm = file_freq_ppm;
           our_skew = 1.0e-6 * file_skew_ppm;
+          LOG(LOGS_INFO, LOGF_Reference, "Frequency %.3f +- %.3f ppm read from %s", file_freq_ppm, file_skew_ppm, drift_file);
         } else {
           LOG(LOGS_WARN, LOGF_Reference, "Could not parse valid frequency and skew from driftfile %s",
               drift_file);
@@ -147,9 +148,6 @@ REF_Initialise(void)
             drift_file);
       }
       fclose(in);
-    } else {
-      LOG(LOGS_WARN, LOGF_Reference, "Could not open driftfile %s for reading",
-          drift_file);
     }
 
     drift_file_age = 0.0;