]> git.ipfire.org Git - thirdparty/nqptp.git/commitdiff
Clang Format
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Sun, 28 Nov 2021 16:06:43 +0000 (16:06 +0000)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Sun, 28 Nov 2021 16:06:43 +0000 (16:06 +0000)
nqptp-message-handlers.c

index 1637111e507f691de7511c664862ee969a4a2051..acfa56103875a89b2a54adcc5b9c2c393a9f978e 100644 (file)
@@ -367,14 +367,14 @@ void handle_follow_up(char *buf, __attribute__((unused)) ssize_t recv_len,
 
       // Do acceptance checking.
 
-      // Positive changes in the offset are much more likely to be 
+      // Positive changes in the offset are much more likely to be
       // legitimate, since they could only occur due to a shorter
       // propagation time. (Actually, this is not quite true --
       // it is possible that the remote clock could be adjusted forward
-      // and this would increase the offset too.) 
+      // and this would increase the offset too.)
       // Anyway, when the clock is new, we give preferential weighting to
       // positive changes in the offset.
-      
+
       // If the new offset is greater, by any amount, than the old offset,
       // or if it is less by up to 10 mS,
       // accept it.
@@ -388,8 +388,10 @@ void handle_follow_up(char *buf, __attribute__((unused)) ssize_t recv_len,
         // we take any positive or a limited negative jitter as a sync event
         if (jitter < 0)
           offset = clock_private_info->previous_offset + jitter / 32;
-        else if (clock_private_info->follow_up_number < (5 * 8)) // at the beginning (8 samples per second)
-          offset = clock_private_info->previous_offset + jitter / 2; // accept positive changes quickly
+        else if (clock_private_info->follow_up_number <
+                 (5 * 8)) // at the beginning (8 samples per second)
+          offset =
+              clock_private_info->previous_offset + jitter / 2; // accept positive changes quickly
         else
           offset = clock_private_info->previous_offset + jitter / 2;
         clock_private_info->last_sync_time = reception_time;