<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>
</head>
<body>
<style type="text/css">
img {
max-width: 100%; height: auto;
}
</style>
<div class="content">
<h3>
Gary E. Miller pushed to branch master
at <a href="https://gitlab.com/NTPsec/ntpsec">NTPsec / ntpsec</a>
</h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://gitlab.com/NTPsec/ntpsec/commit/783eb388348d2944f9d8e10bc28f6eece6c0e12c">783eb388</a></strong>
<div>
<span>by Gary E. Miller</span>
<i>at 2016-11-07T15:44:46-08:00</i>
</div>
<pre class="commit-message" style="margin: 0; white-space: pre-wrap">ntpd: remove two more places where good data thrown away.
On the RasPi the PPS time stamps are way more accurate than
sys_precision. sys_precision is merely the rate at which the system
clock can be queried, which is mainly dependent on the kernel scheduler.
</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class="file-stats">
<a href="#diff-0" style="text-decoration: none">
ntpd/ntp_proto.c
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id="diff-0">
<a href="https://gitlab.com/NTPsec/ntpsec/commit/783eb388348d2944f9d8e10bc28f6eece6c0e12c#diff-0"><strong>ntpd/ntp_proto.c</strong></a>
<hr>
<table class="code white" style="-premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; background: #fff; font-family: monospace; font-size: 13px" bgcolor="#fff" width="100%" cellpadding="0" cellspacing="0">
<tr class="line_holder match" style="line-height: 1.5">
<td class="diff-line-num unfold js-unfold old_line" data-linenumber="597" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">...</td>
<td class="diff-line-num unfold js-unfold new_line" data-linenumber="597" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">...</td>
<td class="line_content match " style="background: #fafafa; color: rgba(0,0,0,0.3); padding-left: 0.5em; padding-right: 0.5em" bgcolor="#fafafa">@@ -597,7 +597,7 @@ handle_procpkt(</td>
</tr>
<tr class="line_holder" style="line-height: 1.5">
<td class="diff-line-num old_line" data-linenumber="597" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
597
</td>
<td class="diff-line-num new_line" data-linenumber="597" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
597
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC597" class="line"> <span class="n" style="color: #333">scalbn</span><span class="p">((</span><span class="kt" style="color: #458; font-weight: bold">double</span><span class="p">)(</span><span class="n" style="color: #333">pkt</span><span class="o" style="font-weight: bold">-></span><span class="n" style="color: #333">rec</span> <span class="o" style="font-weight: bold">-</span> <span class="n" style="color: #333">lfp_to_uint64</span><span class="p">(</span><span class="o" style="font-weight: bold">&</span><span class="n" style="color: #333">peer</span><span class="o" style="font-weight: bold">-></span><span class="n" style="color: #333">org</span><span class="p">)),</span> <span class="o" style="font-weight: bold">-</span><span class="mi" style="color: #099">32</span><span class="p">)</span> <span class="o" style="font-weight: bold">:</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" style="line-height: 1.5">
<td class="diff-line-num old_line" data-linenumber="598" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
598
</td>
<td class="diff-line-num new_line" data-linenumber="598" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
598
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC598" class="line"> <span class="o" style="font-weight: bold">-</span><span class="n" style="color: #333">scalbn</span><span class="p">((</span><span class="kt" style="color: #458; font-weight: bold">double</span><span class="p">)(</span><span class="n" style="color: #333">lfp_to_uint64</span><span class="p">(</span><span class="o" style="font-weight: bold">&</span><span class="n" style="color: #333">peer</span><span class="o" style="font-weight: bold">-></span><span class="n" style="color: #333">org</span><span class="p">)</span> <span class="o" style="font-weight: bold">-</span> <span class="n" style="color: #333">pkt</span><span class="o" style="font-weight: bold">-></span><span class="n" style="color: #333">rec</span><span class="p">),</span> <span class="o" style="font-weight: bold">-</span><span class="mi" style="color: #099">32</span><span class="p">);</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" style="line-height: 1.5">
<td class="diff-line-num old_line" data-linenumber="599" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
599
</td>
<td class="diff-line-num new_line" data-linenumber="599" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
599
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC599" class="line"> <span class="k" style="font-weight: bold">const</span> <span class="kt" style="color: #458; font-weight: bold">double</span> <span class="n" style="color: #333">theta</span> <span class="o" style="font-weight: bold">=</span> <span class="p">(</span><span class="n" style="color: #333">t21</span> <span class="o" style="font-weight: bold">+</span> <span class="n" style="color: #333">t34</span><span class="p">)</span> <span class="o" style="font-weight: bold">/</span> <span class="mi" style="color: #099">2</span><span class="p">.;</span></span>
</pre>
</td>
</tr>
<tr class="line_holder old" style="line-height: 1.5">
<td class="diff-line-num old old_line" data-linenumber="600" style="background: #f9d7dc; border-right-color: #fac5cd; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#f9d7dc">
600
</td>
<td class="diff-line-num new_line old" data-linenumber="600" style="background: #f9d7dc; border-right-color: #fac5cd; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#f9d7dc">
</td>
<td class="line_content noteable_line old" style="background: #fbe9eb; padding-left: 0.5em; padding-right: 0.5em" bgcolor="#fbe9eb">
<pre style="margin: 0"> <span id="LC600" class="line"> <span class="k" style="font-weight: bold">const</span> <span class="kt" style="color: #458; font-weight: bold">double</span> <span class="n" style="color: #333">delta</span> <span class="o" style="font-weight: bold">=</span> <span class="n" style="color: #333"><span class="idiff left">max</span></span><span class="p"><span class="idiff">(</span></span><span class="n" style="color: #333"><span class="idiff">fabs</span></span><span class="p"><span class="idiff">(</span></span><span class="n" style="color: #333"><span class="idiff">t21</span></span><span class="idiff"> </span><span class="o" style="font-weight: bold"><span class="idiff">-</span></span><span class="idiff"> </span><span class="n" style="color: #333"><span class="idiff">t34</span></span><span class="p"><span class="idiff">),</span></span><span class="idiff"> </span><span class="n" style="color: #333"><span class="idiff">LOGTOD</span></span><span class="p"><span class="idiff">(</span></span><span class="n" style="color: #333"><span class="idiff">sys_precision</span></span><span class="p"><span class="idiff right">)</span>);</span></span>
</pre>
</td>
</tr>
<tr class="line_holder new" style="line-height: 1.5">
<td class="diff-line-num new old_line" data-linenumber="601" style="background: #ddfbe6; border-right-color: #c7f0d2; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#ddfbe6">
</td>
<td class="diff-line-num new new_line" data-linenumber="600" style="background: #ddfbe6; border-right-color: #c7f0d2; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#ddfbe6">
600
</td>
<td class="line_content new noteable_line" style="background: #ecfdf0; padding-left: 0.5em; padding-right: 0.5em" bgcolor="#ecfdf0">
<pre style="margin: 0"> <span id="LC600" class="line"> <span class="k" style="font-weight: bold">const</span> <span class="kt" style="color: #458; font-weight: bold">double</span> <span class="n" style="color: #333">delta</span> <span class="o" style="font-weight: bold">=</span> <span class="n" style="color: #333"><span class="idiff left">fabs</span></span><span class="p"><span class="idiff">(</span></span><span class="n" style="color: #333"><span class="idiff">t21</span></span><span class="idiff"> </span><span class="o" style="font-weight: bold"><span class="idiff">-</span></span><span class="idiff"> </span><span class="n" style="color: #333"><span class="idiff right">t34</span></span><span class="p">);</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" style="line-height: 1.5">
<td class="diff-line-num old_line" data-linenumber="601" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
601
</td>
<td class="diff-line-num new_line" data-linenumber="601" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
601
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC601" class="line"> <span class="k" style="font-weight: bold">const</span> <span class="kt" style="color: #458; font-weight: bold">double</span> <span class="n" style="color: #333">epsilon</span> <span class="o" style="font-weight: bold">=</span> <span class="n" style="color: #333">LOGTOD</span><span class="p">(</span><span class="n" style="color: #333">sys_precision</span><span class="p">)</span> <span class="o" style="font-weight: bold">+</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" style="line-height: 1.5">
<td class="diff-line-num old_line" data-linenumber="602" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
602
</td>
<td class="diff-line-num new_line" data-linenumber="602" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
602
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC602" class="line"> <span class="n" style="color: #333">LOGTOD</span><span class="p">(</span><span class="n" style="color: #333">peer</span><span class="o" style="font-weight: bold">-></span><span class="n" style="color: #333">precision</span><span class="p">)</span> <span class="o" style="font-weight: bold">+</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" style="line-height: 1.5">
<td class="diff-line-num old_line" data-linenumber="603" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
603
</td>
<td class="diff-line-num new_line" data-linenumber="603" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
603
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC603" class="line"> <span class="n" style="color: #333">clock_phi</span> <span class="o" style="font-weight: bold">*</span> <span class="n" style="color: #333">delta</span><span class="p">;</span></span>
</pre>
</td>
</tr>
<tr class="line_holder match" style="line-height: 1.5">
<td class="diff-line-num unfold js-unfold old_line" data-linenumber="1894" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">...</td>
<td class="diff-line-num unfold js-unfold new_line" data-linenumber="1894" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">...</td>
<td class="line_content match " style="background: #fafafa; color: rgba(0,0,0,0.3); padding-left: 0.5em; padding-right: 0.5em" bgcolor="#fafafa">@@ -1894,7 +1894,6 @@ clock_select(void)</td>
</tr>
<tr class="line_holder" style="line-height: 1.5">
<td class="diff-line-num old_line" data-linenumber="1894" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
1894
</td>
<td class="diff-line-num new_line" data-linenumber="1894" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
1894
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC1894" class="line"> <span class="n" style="color: #333">k</span> <span class="o" style="font-weight: bold">=</span> <span class="n" style="color: #333">i</span><span class="p">;</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" style="line-height: 1.5">
<td class="diff-line-num old_line" data-linenumber="1895" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
1895
</td>
<td class="diff-line-num new_line" data-linenumber="1895" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
1895
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC1895" class="line"> <span class="p">}</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" style="line-height: 1.5">
<td class="diff-line-num old_line" data-linenumber="1896" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
1896
</td>
<td class="diff-line-num new_line" data-linenumber="1896" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
1896
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC1896" class="line"> <span class="p">}</span></span>
</pre>
</td>
</tr>
<tr class="line_holder old" style="line-height: 1.5">
<td class="diff-line-num old old_line" data-linenumber="1897" style="background: #f9d7dc; border-right-color: #fac5cd; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#f9d7dc">
1897
</td>
<td class="diff-line-num new_line old" data-linenumber="1897" style="background: #f9d7dc; border-right-color: #fac5cd; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#f9d7dc">
</td>
<td class="line_content noteable_line old" style="background: #fbe9eb; padding-left: 0.5em; padding-right: 0.5em" bgcolor="#fbe9eb">
<pre style="margin: 0"> <span id="LC1897" class="line"> <span class="n" style="color: #333">g</span> <span class="o" style="font-weight: bold">=</span> <span class="n" style="color: #333">max</span><span class="p">(</span><span class="n" style="color: #333">g</span><span class="p">,</span> <span class="n" style="color: #333">LOGTOD</span><span class="p">(</span><span class="n" style="color: #333">sys_precision</span><span class="p">));</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" style="line-height: 1.5">
<td class="diff-line-num old_line" data-linenumber="1898" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
1898
</td>
<td class="diff-line-num new_line" data-linenumber="1897" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
1897
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC1897" class="line"> <span class="k" style="font-weight: bold">if</span> <span class="p">(</span><span class="n" style="color: #333">nlist</span> <span class="o" style="font-weight: bold"><=</span> <span class="n" style="color: #333">max</span><span class="p">(</span><span class="mi" style="color: #099">1</span><span class="p">,</span> <span class="n" style="color: #333">sys_minclock</span><span class="p">)</span> <span class="o" style="font-weight: bold">||</span> <span class="n" style="color: #333">g</span> <span class="o" style="font-weight: bold"><=</span> <span class="n" style="color: #333">d</span> <span class="o" style="font-weight: bold">||</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" style="line-height: 1.5">
<td class="diff-line-num old_line" data-linenumber="1899" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
1899
</td>
<td class="diff-line-num new_line" data-linenumber="1898" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
1898
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC1898" class="line"> <span class="p">((</span><span class="n" style="color: #333">FLAG_TRUE</span> <span class="o" style="font-weight: bold">|</span> <span class="n" style="color: #333">FLAG_PREFER</span><span class="p">)</span> <span class="o" style="font-weight: bold">&</span> <span class="n" style="color: #333">peers</span><span class="p">[</span><span class="n" style="color: #333">k</span><span class="p">].</span><span class="n" style="color: #333">peer</span><span class="o" style="font-weight: bold">-></span><span class="n" style="color: #333">flags</span><span class="p">))</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" style="line-height: 1.5">
<td class="diff-line-num old_line" data-linenumber="1900" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
1900
</td>
<td class="diff-line-num new_line" data-linenumber="1899" style="background: #fafafa; border-right-color: #f0f0f0; border-right-style: solid; border-right-width: 1px; color: rgba(0,0,0,0.3); padding: 0 5px; text-align: right; width: 35px" align="right" bgcolor="#fafafa">
1899
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC1899" class="line"> <span class="k" style="font-weight: bold">break</span><span class="p">;</span></span>
</pre>
</td>
</tr>
</table>
<br>
</li>
</div>
<div class="footer" style="margin-top: 10px">
<p style="color: #777; font-size: small">
—
<br>
<a href="https://gitlab.com/NTPsec/ntpsec/commit/783eb388348d2944f9d8e10bc28f6eece6c0e12c">View it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://gitlab.com/NTPsec/ntpsec/commit/783eb388348d2944f9d8e10bc28f6eece6c0e12c"}}</script>
</p>
</div>
</body>
</html>