<!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>
Eric S. Raymond 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/5a72551a137909b7e02c0a6add180f5fc3aa52d4">5a72551a</a></strong>
<div>
<span>by Ian Bruene</span>
<i>at 2017-04-15T06:22:25-05:00</i>
</div>
<pre class="commit-message" style="margin: 0; white-space: pre-wrap">Fixed ntpmon crash when detail mode active and peers display hidden
</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class="file-stats">
<a href="#729df8c63dcbf1ea15ae4a0c70cb810da673db37">
ntpclients/ntpmon
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id="729df8c63dcbf1ea15ae4a0c70cb810da673db37">
<a href="https://gitlab.com/NTPsec/ntpsec/commit/5a72551a137909b7e02c0a6add180f5fc3aa52d4#729df8c63dcbf1ea15ae4a0c70cb810da673db37"><strong>ntpclients/ntpmon</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" id="" style="line-height: 1.6">
<td class="diff-line-num unfold js-unfold old_line" data-linenumber="338" 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="338" 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">@@ -338,8 +338,10 @@ if __name__ == '__main__':</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6">
<td class="diff-line-num old_line" data-linenumber="338" 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">
338
</td>
<td class="diff-line-num new_line" data-linenumber="338" 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">
338
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC338" class="line" lang="python"> <span class="n" style="color: #333">selected</span> <span class="o" style="font-weight: bold">=</span> <span class="mi" style="color: #099">0</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6">
<td class="diff-line-num old_line" data-linenumber="339" 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">
339
</td>
<td class="diff-line-num new_line" data-linenumber="339" 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">
339
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC339" class="line" lang="python"> <span class="n" style="color: #333">selectmode</span> <span class="o" style="font-weight: bold">=</span> <span class="ow" style="font-weight: bold">not</span> <span class="n" style="color: #333">selectmode</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6">
<td class="diff-line-num old_line" data-linenumber="340" 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">
340
</td>
<td class="diff-line-num new_line" data-linenumber="340" 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">
340
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC340" class="line" lang="python"> <span class="n" style="color: #333">detailmode</span> <span class="o" style="font-weight: bold">=</span> <span class="ow" style="font-weight: bold">not</span> <span class="n" style="color: #333">detailmode</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="341" style="background: #cdedda; border-right-color: #bae6cc; 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="#cdedda">
</td>
<td class="diff-line-num new new_line" data-linenumber="341" style="background: #cdedda; border-right-color: #bae6cc; 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="#cdedda">
341
</td>
<td class="line_content new noteable_line" style="background: #e4f5eb; padding-left: 0.5em; padding-right: 0.5em" bgcolor="#e4f5eb">
<pre style="margin: 0">+<span id="LC341" class="line" lang="python"> <span class="n" style="color: #333">showpeers</span> <span class="o" style="font-weight: bold">=</span> <span class="bp" style="color: #999">True</span> <span class="c" style="color: #998; font-style: italic"># detail + hide peers == crash</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6">
<td class="diff-line-num old_line" data-linenumber="341" 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">
341
</td>
<td class="diff-line-num new_line" data-linenumber="342" 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">
342
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC342" class="line" lang="python"> <span class="k" style="font-weight: bold">elif</span> <span class="n" style="color: #333">key</span> <span class="o" style="font-weight: bold">==</span> <span class="s" style="color: #d14">'m'</span><span class="p">:</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6">
<td class="diff-line-num old_line" data-linenumber="342" 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">
342
</td>
<td class="diff-line-num new_line" data-linenumber="343" 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">
343
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC343" class="line" lang="python"> <span class="n" style="color: #333">showpeers</span> <span class="o" style="font-weight: bold">=</span> <span class="ow" style="font-weight: bold">not</span> <span class="n" style="color: #333">showpeers</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="343" style="background: #cdedda; border-right-color: #bae6cc; 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="#cdedda">
</td>
<td class="diff-line-num new new_line" data-linenumber="344" style="background: #cdedda; border-right-color: #bae6cc; 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="#cdedda">
344
</td>
<td class="line_content new noteable_line" style="background: #e4f5eb; padding-left: 0.5em; padding-right: 0.5em" bgcolor="#e4f5eb">
<pre style="margin: 0">+<span id="LC344" class="line" lang="python"> <span class="n" style="color: #333">detailmode</span> <span class="o" style="font-weight: bold">=</span> <span class="bp" style="color: #999">False</span> <span class="c" style="color: #998; font-style: italic"># detail + hide peers == crash</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6">
<td class="diff-line-num old_line" data-linenumber="343" 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">
343
</td>
<td class="diff-line-num new_line" data-linenumber="345" 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">
345
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC345" class="line" lang="python"> <span class="k" style="font-weight: bold">elif</span> <span class="n" style="color: #333">key</span> <span class="o" style="font-weight: bold">==</span> <span class="s" style="color: #d14">'n'</span><span class="p">:</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6">
<td class="diff-line-num old_line" data-linenumber="344" 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">
344
</td>
<td class="diff-line-num new_line" data-linenumber="346" 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">
346
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC346" class="line" lang="python"> <span class="n" style="color: #333">peer_report</span><span class="o" style="font-weight: bold">.</span><span class="n" style="color: #333">showhostnames</span> <span class="o" style="font-weight: bold">=</span> \</span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6">
<td class="diff-line-num old_line" data-linenumber="345" 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">
345
</td>
<td class="diff-line-num new_line" data-linenumber="347" 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">
347
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC347" class="line" lang="python"> <span class="ow" style="font-weight: bold">not</span> <span class="n" style="color: #333">peer_report</span><span class="o" style="font-weight: bold">.</span><span class="n" style="color: #333">showhostnames</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/5a72551a137909b7e02c0a6add180f5fc3aa52d4">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/5a72551a137909b7e02c0a6add180f5fc3aa52d4"}}</script>
</p>
</div>
</body>
</html>