<!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>
deamoneye 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/dc4e61753cd40d3772a8725d4d1a2319919b36a0">dc4e6175</a></strong>
<div>
<span>by Keane Wolter</span>
<i>at 2017-01-22T20:09:16-05:00</i>
</div>
<pre class="commit-message" style="margin: 0; white-space: pre-wrap">updated regex for SmartCtl class to be more specific.
</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class="file-stats">
<a href="#73b38346b096d0f0e53cc19a366d2be16b9f31cb">
contrib/temp-log.py
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id="73b38346b096d0f0e53cc19a366d2be16b9f31cb">
<a href="https://gitlab.com/NTPsec/ntpsec/commit/dc4e61753cd40d3772a8725d4d1a2319919b36a0#73b38346b096d0f0e53cc19a366d2be16b9f31cb"><strong>contrib/temp-log.py</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="63" 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="63" 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">@@ -63,8 +63,8 @@ class SmartCtl:</td>
</tr>
<tr class="line_holder" style="line-height: 1.6">
<td class="diff-line-num old_line" data-linenumber="63" 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">
63
</td>
<td class="diff-line-num new_line" data-linenumber="63" 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">
63
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC63" class="line">        <span class="k" style="font-weight: bold">for</span> <span class="n" style="color: #333">child</span> <span class="ow" style="font-weight: bold">in</span> <span class="n" style="color: #333">os</span><span class="o" style="font-weight: bold">.</span><span class="n" style="color: #333">listdir</span><span class="p">(</span><span class="s" style="color: #d14">'/dev/'</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="64" 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">
64
</td>
<td class="diff-line-num new_line" data-linenumber="64" 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">
64
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC64" class="line">            <span class="k" style="font-weight: bold">if</span> <span class="n" style="color: #333">re</span><span class="o" style="font-weight: bold">.</span><span class="nb" style="color: #0086b3">compile</span><span class="p">(</span><span class="s" style="color: #d14">'sd[a-z]$'</span><span class="p">)</span><span class="o" style="font-weight: bold">.</span><span class="n" style="color: #333">match</span><span class="p">(</span><span class="n" style="color: #333">child</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="65" 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">
65
</td>
<td class="diff-line-num new_line" data-linenumber="65" 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">
65
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC65" class="line">                <span class="bp" style="color: #999">self</span><span class="o" style="font-weight: bold">.</span><span class="n" style="color: #333">_drives</span><span class="o" style="font-weight: bold">.</span><span class="n" style="color: #333">append</span><span class="p">(</span><span class="s" style="color: #d14">"/dev/"</span><span class="o" style="font-weight: bold">+</span><span class="nb" style="color: #0086b3">str</span><span class="p">(</span><span class="n" style="color: #333">child</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="66" 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">
66
</td>
<td class="diff-line-num new_line old" data-linenumber="66" 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="LC66" class="line">        <span class="c" style="color: #998; font-style: italic"># this regex matches temperature output lines from smartctl -<span class="idiff left right">a</span></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="67" 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">
67
</td>
<td class="diff-line-num new_line old" data-linenumber="66" 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="LC67" class="line">        <span class="bp" style="color: #999">self</span><span class="o" style="font-weight: bold">.</span><span class="n" style="color: #333">_pat</span> <span class="o" style="font-weight: bold">=</span> <span class="n" style="color: #333">re</span><span class="o" style="font-weight: bold">.</span><span class="nb" style="color: #0086b3">compile</span><span class="p">(</span><span class="s" style="color: #d14">'194 Temperature_Celsius</span><span class="err" style="background: #e3d2d2; color: #a61717">\</span><span class="s" style="color: #d14">s+</span><span class="err" style="background: #e3d2d2; color: #a61717">\</span><span class="s" style="color: #d14">S+</span><span class="err" style="background: #e3d2d2; color: #a61717">\</span><span class="s" style="color: #d14">s+<span class="idiff left">(</span></span><span class="err" style="background: #e3d2d2; color: #a61717"><span class="idiff">\</span></span><span class="s" style="color: #d14"><span class="idiff">d+)</span></span><span class="err" style="background: #e3d2d2; color: #a61717"><span class="idiff">\</span></span><span class="s" style="color: #d14"><span class="idiff right">s+</span>'</span><span class="p">)</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="68" 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="66" 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">
66
</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="LC66" class="line">        <span class="c" style="color: #998; font-style: italic"># this regex matches temperature output lines from smartctl -<span class="idiff left right">l</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="68" 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="67" 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">
67
</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="LC67" class="line">        <span class="bp" style="color: #999">self</span><span class="o" style="font-weight: bold">.</span><span class="n" style="color: #333">_pat</span> <span class="o" style="font-weight: bold">=</span> <span class="n" style="color: #333">re</span><span class="o" style="font-weight: bold">.</span><span class="nb" style="color: #0086b3">compile</span><span class="p">(</span><span class="s" style="color: #d14">'194 Temperature_Celsius</span><span class="err" style="background: #e3d2d2; color: #a61717">\</span><span class="s" style="color: #d14">s+</span><span class="err" style="background: #e3d2d2; color: #a61717">\</span><span class="s" style="color: #d14">S+</span><span class="err" style="background: #e3d2d2; color: #a61717">\</span><span class="s" style="color: #d14">s+</span><span class="err" style="background: #e3d2d2; color: #a61717"><span class="idiff left">\</span></span><span class="s" style="color: #d14"><span class="idiff">d+</span></span><span class="err" style="background: #e3d2d2; color: #a61717"><span class="idiff">\</span></span><span class="s" style="color: #d14"><span class="idiff">s+</span></span><span class="err" style="background: #e3d2d2; color: #a61717"><span class="idiff">\</span></span><span class="s" style="color: #d14"><span class="idiff">d+</span></span><span class="err" style="background: #e3d2d2; color: #a61717"><span class="idiff">\</span></span><span class="s" style="color: #d14"><span class="idiff">s+</span></span><span class="err" style="background: #e3d2d2; color: #a61717"><span class="idiff">\</span></span><span class="s" style="color: #d14"><span class="idiff">d+</span></span><span class="err" style="background: #e3d2d2; color: #a61717"><span class="idiff">\</span></span><span class="s" style="color: #d14"><span class="idiff">s+</span></span><span class="err" style="background: #e3d2d2; color: #a61717"><span class="idiff">\</span></span><span class="s" style="color: #d14"><span class="idiff">S+</span></span><span class="err" style="background: #e3d2d2; color: #a61717"><span class="idiff">\</span></span><span class="s" style="color: #d14"><span class="idiff">s+</span></span><span class="err" style="background: #e3d2d2; color: #a61717"><span class="idiff">\</span></span><span class="s" style="color: #d14"><span class="idiff">S+</span></span><span class="err" style="background: #e3d2d2; color: #a61717"><span class="idiff">\</span></span><span class="s" style="color: #d14"><span class="idiff">s+</span></span><span class="err" style="background: #e3d2d2; color: #a61717"><span class="idiff">\</span></span><span class="s" style="color: #d14"><span class="idiff">S+</span></span><span class="err" style="background: #e3d2d2; color: #a61717"><span class="idiff">\</span></span><span class="s" style="color: #d14"><span class="idiff">s+(</span></span><span class="err" style="background: #e3d2d2; color: #a61717"><span class="idiff">\</span></span><span class="s" style="color: #d14"><span class="idiff right">d+)</span>'</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="68" 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">
68
</td>
<td class="diff-line-num new_line" data-linenumber="68" 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">
68
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC68" class="line"></span>
</pre>
</td>
</tr>
<tr class="line_holder" style="line-height: 1.6">
<td class="diff-line-num old_line" data-linenumber="69" 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">
69
</td>
<td class="diff-line-num new_line" data-linenumber="69" 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">
69
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC69" class="line">    <span class="k" style="font-weight: bold">def</span> <span class="nf" style="color: #900; font-weight: bold">get_data</span><span class="p">(</span><span class="bp" style="color: #999">self</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="70" 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">
70
</td>
<td class="diff-line-num new_line" data-linenumber="70" 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">
70
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em">
<pre style="margin: 0"> <span id="LC70" class="line">        <span class="s" style="color: #d14">"Collects the data and return the output as an array"</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/dc4e61753cd40d3772a8725d4d1a2319919b36a0">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/dc4e61753cd40d3772a8725d4d1a2319919b36a0"}}</script>
</p>
</div>
</body>
</html>