<!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>



<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<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/82ef43fac129dcc66aa1cd2e53b92875f94c0382">82ef43fa</a></strong>
<div>
<span>by Gary E. Miller</span>
<i>at 2017-09-26T14:47:04-07:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">ntpviz: Python 2.6 has no collections.Counter(), use defaultdict()
</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class="file-stats">
<a href="#c9f6eda94e9e5e7fbdd3688cda6b292bf75df4c4">
ntpclients/ntpviz
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id="c9f6eda94e9e5e7fbdd3688cda6b292bf75df4c4">
<a href="https://gitlab.com/NTPsec/ntpsec/commit/82ef43fac129dcc66aa1cd2e53b92875f94c0382#c9f6eda94e9e5e7fbdd3688cda6b292bf75df4c4"><strong>ntpclients/ntpviz</strong></a>
<hr>
<table class="code white" style="font-family: monospace; font-size: 12px;" bgcolor="#fff" width="100%" cellpadding="0" cellspacing="0">
<tr class="line_holder match" id="" style="line-height: 1.6;">
<td class="diff-line-num unfold js-unfold old_line" data-linenumber="1164" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">...</td>
<td class="diff-line-num unfold js-unfold new_line" data-linenumber="1164" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">...</td>
<td class="line_content match " style="padding-left: 0.5em; padding-right: 0.5em; color: rgba(0,0,0,0.3);" bgcolor="#fafafa">@@ -1164,7 +1164,8 @@ plot \</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="1164" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
1164
</td>
<td class="diff-line-num new_line" data-linenumber="1164" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
1164
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC1164" class="line" lang="html">            <span class="na" style="color: teal;">rnd1 =</span><span class="err" style="color: #a61717; background-color: #e3d2d2;"> </span><span class="s" style="color: #d14;">9</span>        <span class="err" style="color: #a61717; background-color: #e3d2d2;">#</span> <span class="na" style="color: teal;">round</span> <span class="na" style="color: teal;">to</span> <span class="na" style="color: teal;">1</span> <span class="na" style="color: teal;">ns</span> <span class="na" style="color: teal;">boxes</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="1165" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
1165
</td>
<td class="diff-line-num new_line" data-linenumber="1165" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
1165
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC1165" class="line" lang="html">            <span class="na" style="color: teal;">out</span><span class="err" style="color: #a61717; background-color: #e3d2d2;">['</span><span class="na" style="color: teal;">boxwidth</span><span class="err" style="color: #a61717; background-color: #e3d2d2;">']</span> <span class="err" style="color: #a61717; background-color: #e3d2d2;">=</span> <span class="na" style="color: teal;">S_PER_NS</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="1166" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
1166
</td>
<td class="diff-line-num new_line" data-linenumber="1166" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
1166
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC1166" class="line" lang="html"></span>
</pre>
</td>
</tr>
<tr class="line_holder old" id="" style="line-height: 1.6;">
<td class="diff-line-num old old_line" data-linenumber="1167" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #fac5cd; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#f9d7dc">
1167
</td>
<td class="diff-line-num new_line old" data-linenumber="1167" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #fac5cd; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#f9d7dc">
 
</td>
<td class="line_content noteable_line old" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#fbe9eb">
<pre style="margin: 0;">-<span id="LC1167" class="line" lang="html">        <span class="na" style="color: teal;">cnt =</span><span class="err" style="color: #a61717; background-color: #e3d2d2;"> </span><span class="s" style="color: #d14;">collections.Counter()</span></span>
</pre>
</td>
</tr>
<tr class="line_holder new" id="" style="line-height: 1.6;">
<td class="diff-line-num new old_line" data-linenumber="1168" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
 
</td>
<td class="diff-line-num new new_line" data-linenumber="1167" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
1167
</td>
<td class="line_content new noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#ecfdf0">
<pre style="margin: 0;">+<span id="LC1167" class="line" lang="html">        <span class="err" style="color: #a61717; background-color: #e3d2d2;">#</span> <span class="na" style="color: teal;">Python</span> <span class="na" style="color: teal;">2</span><span class="err" style="color: #a61717; background-color: #e3d2d2;">.</span><span class="na" style="color: teal;">6</span>  <span class="na" style="color: teal;">has</span> <span class="na" style="color: teal;">no</span> <span class="na" style="color: teal;">collections</span><span class="err" style="color: #a61717; background-color: #e3d2d2;">.</span><span class="na" style="color: teal;">Counter</span><span class="err" style="color: #a61717; background-color: #e3d2d2;">(),</span> <span class="na" style="color: teal;">so</span> <span class="na" style="color: teal;">fake</span> <span class="na" style="color: teal;">it</span><span class="err" style="color: #a61717; background-color: #e3d2d2;">.</span></span>
</pre>
</td>
</tr>
<tr class="line_holder new" id="" style="line-height: 1.6;">
<td class="diff-line-num new old_line" data-linenumber="1168" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
 
</td>
<td class="diff-line-num new new_line" data-linenumber="1168" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
1168
</td>
<td class="line_content new noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#ecfdf0">
<pre style="margin: 0;">+<span id="LC1168" class="line" lang="html">        <span class="na" style="color: teal;">cnt =</span><span class="err" style="color: #a61717; background-color: #e3d2d2;"> </span><span class="s" style="color: #d14;">collections.defaultdict(int)</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="1168" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
1168
</td>
<td class="diff-line-num new_line" data-linenumber="1169" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
1169
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC1169" class="line" lang="html">        <span class="na" style="color: teal;">for</span> <span class="na" style="color: teal;">value</span> <span class="na" style="color: teal;">in</span> <span class="na" style="color: teal;">values:</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="1169" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
1169
</td>
<td class="diff-line-num new_line" data-linenumber="1170" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
1170
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC1170" class="line" lang="html">            <span class="err" style="color: #a61717; background-color: #e3d2d2;">#</span> <span class="na" style="color: teal;">put</span> <span class="na" style="color: teal;">into</span> <span class="na" style="color: teal;">buckets</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="1170" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
1170
</td>
<td class="diff-line-num new_line" data-linenumber="1171" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
1171
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC1171" class="line" lang="html">            <span class="err" style="color: #a61717; background-color: #e3d2d2;">#</span> <span class="na" style="color: teal;">for</span> <span class="na" style="color: teal;">a</span> <span class="err" style="color: #a61717; background-color: #e3d2d2;">+/</span><span class="na" style="color: teal;">-</span> <span class="na" style="color: teal;">50</span> <span class="na" style="color: teal;">microSec</span> <span class="na" style="color: teal;">range</span> <span class="na" style="color: teal;">that</span> <span class="na" style="color: teal;">is</span> <span class="na" style="color: teal;">1</span><span class="err" style="color: #a61717; background-color: #e3d2d2;">,</span><span class="na" style="color: teal;">000</span> <span class="na" style="color: teal;">buckets</span> <span class="na" style="color: teal;">to</span> <span class="na" style="color: teal;">plot</span></span>
</pre>
</td>
</tr>

</table>
<br>
</li>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">

<br>
<a href="https://gitlab.com/NTPsec/ntpsec/commit/82ef43fac129dcc66aa1cd2e53b92875f94c0382">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/82ef43fac129dcc66aa1cd2e53b92875f94c0382"}}</script>
</p>
</div>
</body>
</html>