<!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/eba7af593fc0804e318cff6d25a411742c9cbe7a">eba7af59</a></strong>
<div>
<span>by Gary E. Miller</span>
<i>at 2017-01-02T20:45:15-08:00</i>
</div>
<pre class="commit-message" style="margin: 0; white-space: pre-wrap">ntpdig: fix use before set found by pyflakes.
</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class="file-stats">
<a href="#d422df146c7e411007ade1df3134c807bc913ac4" style="text-decoration: none">
ntpclients/ntpdig
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id="d422df146c7e411007ade1df3134c807bc913ac4">
<a href="https://gitlab.com/NTPsec/ntpsec/commit/eba7af593fc0804e318cff6d25a411742c9cbe7a#d422df146c7e411007ade1df3134c807bc913ac4"><strong>ntpclients/ntpdig</strong></a>
<hr>
<table class="code white" style="-premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; background: #fff; font-family: monospace; font-size: 12px" bgcolor="#fff" width="100%" cellpadding="0" cellspacing="0">
<tr class="line_holder match" style="line-height: 1.6">
<td class="diff-line-num unfold js-unfold old_line" data-linenumber="407" 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="407" 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">@@ -407,13 +407,12 @@ if __name__ == '__main__':</td>
</tr>
<tr class="line_holder" style="line-height: 1.6">
<td class="diff-line-num old_line" data-linenumber="407" 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">
407
</td>
<td class="diff-line-num new_line" data-linenumber="407" 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">
407
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC407" class="line">            <span class="k" style="font-weight: bold">print</span><span class="p">(</span><span class="s" style="color: #d14">"xmt t3: </span><span class="si" style="color: #d14">%</span><span class="s" style="color: #d14">f dst t4: </span><span class="si" style="color: #d14">%</span><span class="s" style="color: #d14">f"</span> <span class="o" style="font-weight: bold">%</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">t3</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">t4</span><span class="p">()))</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" style="line-height: 1.6">
<td class="diff-line-num old_line" data-linenumber="408" 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">
408
</td>
<td class="diff-line-num new_line" data-linenumber="408" 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">
408
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC408" class="line">            <span class="k" style="font-weight: bold">print</span><span class="p">(</span><span class="s" style="color: #d14">"rec-org t21: </span><span class="si" style="color: #d14">%</span><span class="s" style="color: #d14">f  xmt-dst t34: </span><span class="si" style="color: #d14">%</span><span class="s" style="color: #d14">f"</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" style="line-height: 1.6">
<td class="diff-line-num old_line" data-linenumber="409" 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">
409
</td>
<td class="diff-line-num new_line" data-linenumber="409" 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">
409
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC409" class="line">                  <span class="o" style="font-weight: bold">%</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">t2</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">t1</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">t3</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">t4</span><span class="p">()))</span></span>
</pre>
</td>
</tr>
<tr class="line_holder old" style="line-height: 1.6">
<td class="diff-line-num old old_line" data-linenumber="410" 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">
410
</td>
<td class="diff-line-num new_line old" data-linenumber="410" 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="LC410" class="line">        <span class="c" style="color: #998; font-style: italic"><span class="idiff left right"># FIXME!! offset used before defined. </span></span></span>
</pre>
</td>
</tr>
<tr class="line_holder new" style="line-height: 1.6">
<td class="diff-line-num new old_line" data-linenumber="411" 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="410" 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">
410
</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="LC410" class="line">        <span class="n" style="color: #333"><span class="idiff left">offset</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">pkt</span></span><span class="o" style="font-weight: bold"><span class="idiff">.</span></span><span class="n" style="color: #333"><span class="idiff">adjust</span></span><span class="p"><span class="idiff right">()</span></span></span>
</pre>
</td>
</tr>
<tr class="line_holder" style="line-height: 1.6">
<td class="diff-line-num old_line" data-linenumber="411" 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">
411
</td>
<td class="diff-line-num new_line" data-linenumber="411" 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">
411
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC411" class="line">        <span class="n" style="color: #333">adjusted</span> <span class="o" style="font-weight: bold">=</span> <span class="n" style="color: #333">step</span> <span class="ow" style="font-weight: bold">and</span> <span class="p">(</span><span class="ow" style="font-weight: bold">not</span> <span class="n" style="color: #333">slew</span> <span class="ow" style="font-weight: bold">or</span> <span class="p">(</span><span class="n" style="color: #333">slew</span> <span class="ow" style="font-weight: bold">and</span> <span class="p">(</span><span class="nb" style="color: #0086b3">abs</span><span class="p">(</span><span class="n" style="color: #333">offset</span><span class="p">)</span> <span class="o" style="font-weight: bold">></span> <span class="n" style="color: #333">steplimit</span><span class="p">)))</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" style="line-height: 1.6">
<td class="diff-line-num old_line" data-linenumber="412" 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">
412
</td>
<td class="diff-line-num new_line" data-linenumber="412" 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">
412
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC412" class="line">        <span class="n" style="color: #333">report</span><span class="p">(</span><span class="n" style="color: #333">pkt</span><span class="p">,</span> <span class="n" style="color: #333">json</span><span class="p">)</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" style="line-height: 1.6">
<td class="diff-line-num old_line" data-linenumber="413" 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">
413
</td>
<td class="diff-line-num new_line" data-linenumber="413" 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">
413
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC413" class="line">        <span class="c" style="color: #998; font-style: italic"># If we can step but we cannot slew, then step.</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" style="line-height: 1.6">
<td class="diff-line-num old_line" data-linenumber="414" 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">
414
</td>
<td class="diff-line-num new_line" data-linenumber="414" 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">
414
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC414" class="line">        <span class="c" style="color: #998; font-style: italic"># If we can step or slew and |offset| > steplimit, then step.</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" style="line-height: 1.6">
<td class="diff-line-num old_line" data-linenumber="415" 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">
415
</td>
<td class="diff-line-num new_line" data-linenumber="415" 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">
415
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC415" class="line">        <span class="n" style="color: #333">rc</span> <span class="o" style="font-weight: bold">=</span> <span class="bp" style="color: #999">True</span></span>
</pre>
</td>
</tr>
<tr class="line_holder old" style="line-height: 1.6">
<td class="diff-line-num old old_line" data-linenumber="416" 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">
416
</td>
<td class="diff-line-num new_line old" data-linenumber="416" 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="LC416" class="line">        <span class="n" style="color: #333">offset</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">adjust</span><span class="p">()</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" style="line-height: 1.6">
<td class="diff-line-num old_line" data-linenumber="417" 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">
417
</td>
<td class="diff-line-num new_line" data-linenumber="416" 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">
416
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC416" class="line">        <span class="n" style="color: #333">ntp</span><span class="o" style="font-weight: bold">.</span><span class="n" style="color: #333">ntpc</span><span class="o" style="font-weight: bold">.</span><span class="n" style="color: #333">setprogname</span><span class="p">(</span><span class="s" style="color: #d14">"ntpdig"</span><span class="p">)</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" style="line-height: 1.6">
<td class="diff-line-num old_line" data-linenumber="418" 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">
418
</td>
<td class="diff-line-num new_line" data-linenumber="417" 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">
417
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC417" class="line">        <span class="k" style="font-weight: bold">if</span> <span class="n" style="color: #333">adjusted</span><span class="p">:</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" style="line-height: 1.6">
<td class="diff-line-num old_line" data-linenumber="419" 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">
419
</td>
<td class="diff-line-num new_line" data-linenumber="418" 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">
418
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC418" class="line">            <span class="n" style="color: #333">rc</span> <span class="o" style="font-weight: bold">=</span> <span class="n" style="color: #333">ntp</span><span class="o" style="font-weight: bold">.</span><span class="n" style="color: #333">ntpc</span><span class="o" style="font-weight: bold">.</span><span class="n" style="color: #333">step_systime</span><span class="p">(</span><span class="n" style="color: #333">offset</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/eba7af593fc0804e318cff6d25a411742c9cbe7a">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/eba7af593fc0804e318cff6d25a411742c9cbe7a"}}</script>
</p>
</div>
</body>
</html>