<pre style='margin:0'>
Marius Schamschula (Schamschula) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/ede35f9393199a5c48f6ecb8449c2d59e26c2488">https://github.com/macports/macports-ports/commit/ede35f9393199a5c48f6ecb8449c2d59e26c2488</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new ede35f9  nagios-plugins: Add patch file fixing check_load plugin
</span>ede35f9 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit ede35f9393199a5c48f6ecb8449c2d59e26c2488
</span>Author: Michal Moravec <michal.moravec@macadmin.cz>
AuthorDate: Thu Nov 16 18:46:50 2017 +0100

<span style='display:block; white-space:pre;color:#404040;'>    nagios-plugins: Add patch file fixing check_load plugin
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Patch fixes parsing of uptime command output.
</span><span style='display:block; white-space:pre;color:#404040;'>    load5 and load15 values are now parsed and displayed.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Closes: https://trac.macports.org/ticket/54775
</span>---
 net/nagios-plugins/Portfile                              |  3 ++-
 net/nagios-plugins/files/patch-plugins-check_load.c.diff | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/nagios-plugins/Portfile b/net/nagios-plugins/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a6066c6..5f19d36 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/nagios-plugins/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/nagios-plugins/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -23,7 +23,8 @@ master_sites        http://nagios-plugins.org/download/
</span> checksums           rmd160  39c364ac08854a1829d47562d4add1ae58a49334 \
                     sha256  647c0ba4583d891c965fc29b77c4ccfeccc21f409fdf259cb8af52cb39c21e18
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles          patch-plugins-check_nt.c.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles          patch-plugins-check_nt.c.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    patch-plugins-check_load.c.diff
</span> 
 perl5.branches      5.26
 
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/nagios-plugins/files/patch-plugins-check_load.c.diff b/net/nagios-plugins/files/patch-plugins-check_load.c.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..84aa6f8
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/nagios-plugins/files/patch-plugins-check_load.c.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- plugins/check_load.c.orig      2017-01-19 17:01:31.000000000 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ plugins/check_load.c   2017-11-16 18:10:11.000000000 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -157,7 +157,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+       sscanf (input_buffer, "%*[^l]load average: %lf, %lf, %lf", &la1, &la5, &la15);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     else if(strstr(input_buffer, "load averages:")) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-      sscanf (input_buffer, "%*[^l]load averages: %lf, %lf, %lf", &la1, &la5, &la15);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++      sscanf (input_buffer, "%*[^l]load averages: %lf %lf %lf", &la1, &la5, &la15);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+           printf (_("could not parse load from uptime: %s\n"), result, PATH_TO_UPTIME);
</span></pre><pre style='margin:0'>

</pre>