]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Fix spelling
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 17 Jun 2013 08:40:16 +0000 (10:40 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 17 Jun 2013 16:26:48 +0000 (18:26 +0200)
candm.h
client.c
cmdmon.c
reports.h
sources.c

diff --git a/candm.h b/candm.h
index a0efbd1ebe33a184c5846711e062f7aa0f55865a..36291d7e9ceffdc1fc86b5b8b2fd1ece89dfefd1 100644 (file)
--- a/candm.h
+++ b/candm.h
@@ -507,7 +507,7 @@ typedef struct {
 #define RPY_SD_ST_FALSETICKER 2
 #define RPY_SD_ST_JITTERY 3
 #define RPY_SD_ST_CANDIDATE 4
-#define RPY_SD_ST_OUTLYER 5
+#define RPY_SD_ST_OUTLIER 5
 
 #define RPY_SD_FLAG_NOSELECT 0x1
 #define RPY_SD_FLAG_PREFER 0x2
index 99d33a5f0b0332f5a58fede13f38b99ddd55bc36..d9853cd5eaea16bc1000f203919243781380b2e1 100644 (file)
--- a/client.c
+++ b/client.c
@@ -1747,7 +1747,7 @@ process_cmd_sources(char *line)
               printf("~"); break;
             case RPY_SD_ST_CANDIDATE:
               printf("+"); break;
-            case RPY_SD_ST_OUTLYER:
+            case RPY_SD_ST_OUTLIER:
               printf("-"); break;
             default:
               printf(" ");
index f0eeb7cd7008d809a730b969e18258564ae78c48..dd78afa0d4bcd37097dcfb678b75745ce6aaea60 100644 (file)
--- a/cmdmon.c
+++ b/cmdmon.c
@@ -1049,8 +1049,8 @@ handle_source_data(CMD_Request *rx_message, CMD_Reply *tx_message)
       case RPT_CANDIDATE:
         tx_message->data.source_data.state   = htons(RPY_SD_ST_CANDIDATE);
         break;
-      case RPT_OUTLYER:
-        tx_message->data.source_data.state   = htons(RPY_SD_ST_OUTLYER);
+      case RPT_OUTLIER:
+        tx_message->data.source_data.state   = htons(RPY_SD_ST_OUTLIER);
         break;
     }
     switch (report.mode) {
index 3eeb5ab51dd36b8af6ec3192f422650af69e767c..5ea504fe9b4ce6b6f05612430778cefb952b8359 100644 (file)
--- a/reports.h
+++ b/reports.h
@@ -37,7 +37,7 @@ typedef struct {
   int stratum;
   int poll;
   enum {RPT_NTP_CLIENT, RPT_NTP_PEER, RPT_LOCAL_REFERENCE} mode;
-  enum {RPT_SYNC, RPT_UNREACH, RPT_FALSETICKER, RPT_JITTERY, RPT_CANDIDATE, RPT_OUTLYER} state;
+  enum {RPT_SYNC, RPT_UNREACH, RPT_FALSETICKER, RPT_JITTERY, RPT_CANDIDATE, RPT_OUTLIER} state;
   enum {RPT_NORMAL, RPT_PREFER, RPT_NOSELECT} sel_option;
 
   int reachability;
index dd201205483eda1cd5eefe9f4fbcaa7c7b7b585d..90d88cff73145579e750f611930bb88dfca263a2 100644 (file)
--- a/sources.c
+++ b/sources.c
@@ -96,8 +96,8 @@ struct SRC_Instance_Record {
   /* Flag indicating that only few samples were accumulated so far */
   int beginning;
 
-  /* Updates left before resetting outlyer status */
-  int outlyer;
+  /* Updates left before allowing combining */
+  int outlier;
 
   /* Flag indicating the status of the source */
   SRC_Status status;
@@ -141,8 +141,8 @@ static int selected_source_index; /* Which source index is currently
 /* Score needed to replace the currently selected source */
 #define SCORE_LIMIT 10.0
 
-/* Number of updates needed to reset the outlyer status */
-#define OUTLYER_PENALTY 32
+/* Number of updates needed to reset the outlier status */
+#define OUTLIER_PENALTY 32
 
 static double reselect_distance;
 static double stratum_weight;
@@ -220,7 +220,7 @@ SRC_Instance SRC_CreateNewInstance(uint32_t ref_id, SRC_Type type, SRC_SelectOpt
   result->selectable = 0;
   result->reachability = 0;
   result->beginning = 1;
-  result->outlyer = 0;
+  result->outlier = 0;
   result->status = SRC_BAD_STATS;
   result->type = type;
   result->sel_score = 1.0;
@@ -447,18 +447,18 @@ combine_sources(int n_sel_sources, struct timeval *ref_time, double *offset,
 
     /* Don't include this source if its distance is longer than the distance of
        the selected source multiplied by the limit, their estimated frequencies
-       are not close, or it was recently marked as outlyer */
+       are not close, or it was recently marked as outlier */
 
     if (index != selected_source_index &&
         (sources[index]->sel_info.root_distance > combine_limit *
            (reselect_distance + sources[selected_source_index]->sel_info.root_distance) ||
          fabs(*frequency - src_frequency) >
            combine_limit * (*skew + src_skew + LCL_GetMaxClockError()))) {
-      sources[index]->outlyer = !sources[index]->beginning ? OUTLYER_PENALTY : 1;
+      sources[index]->outlier = !sources[index]->beginning ? OUTLIER_PENALTY : 1;
     }
 
-    if (sources[index]->outlyer) {
-      sources[index]->outlyer--;
+    if (sources[index]->outlier) {
+      sources[index]->outlier--;
       continue;
     }
 
@@ -844,7 +844,7 @@ SRC_SelectSource(uint32_t match_refid)
           /* Reset score for non-selectable sources */
           if (sources[i]->status != SRC_SELECTABLE) {
             sources[i]->sel_score = 1.0;
-            sources[i]->outlyer = OUTLYER_PENALTY;
+            sources[i]->outlier = OUTLIER_PENALTY;
             continue;
           }
             
@@ -908,7 +908,7 @@ SRC_SelectSource(uint32_t match_refid)
           /* New source has been selected, reset all scores */
           for (i=0; i < n_sources; i++) {
             sources[i]->sel_score = 1.0;
-            sources[i]->outlyer = 0;
+            sources[i]->outlier = 0;
           }
         }
 
@@ -1185,7 +1185,7 @@ SRC_ReportSource(int index, RPT_SourceReport *report, struct timeval *now)
         report->state = RPT_FALSETICKER;
         break;
       case SRC_SELECTABLE:
-        report->state = src->outlyer ? RPT_OUTLYER : RPT_CANDIDATE;
+        report->state = src->outlier ? RPT_OUTLIER : RPT_CANDIDATE;
         break;
       default:
         assert(0);