~ubuntu-branches/ubuntu/utopic/munin/utopic

« back to all changes in this revision

Viewing changes to debian/patches/upstream_changeset_4358.patch

  • Committer: Package Import Robot
  • Author(s): Vibhav Pant, Vibhav Pant, James Page
  • Date: 2012-05-21 14:39:19 UTC
  • Revision ID: package-import@ubuntu.com-20120521143919-0prq8zkg08u18cfy
Tags: 1.4.6-3ubuntu5
[ Vibhav Pant ]
* debian/patches/upstream_changeset_4597.patch:
  - Fixes incorrect graph configuration in munin plugin
    exim_mailqueue (LP: #598385).

[ James Page ]
* debian/patches/upstream_changeset_4358.patch:
  - Silent Perl 5.14 warnings to re-enable collection of 
    memory usage data in the memory plugin (LP: #1000678).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Silence Perl 5.14 warnings by adding parenthesis
 
2
 around a use of qw(...)
 
3
 .
 
4
 This re-enables the use of the memory monitor plugin.
 
5
Origin: http://munin-monitoring.org/changeset/4358
 
6
Bug-Ubuntu: http://pad.lv/1000678
 
7
 
 
8
Index: munin-1.4.6/plugins/node.d.linux/memory.in
 
9
===================================================================
 
10
--- munin-1.4.6.orig/plugins/node.d.linux/memory.in     2011-07-05 18:36:14.000000000 +0100
 
11
+++ munin-1.4.6/plugins/node.d.linux/memory.in  2012-05-21 14:45:18.733391915 +0100
 
12
@@ -186,7 +186,7 @@
 
13
        print "inact_clean.draw LINE1\n";
 
14
        print "inact_clean.info Memory not currently used.\n";
 
15
     }
 
16
-    for my $field qw(apps buffers swap cached free slab swap_cache page_tables vmalloc_used committed mapped active active_anon active_cache inactive inact_dirty inact_laundry inact_clean) {
 
17
+    for my $field (qw(apps buffers swap cached free slab swap_cache page_tables vmalloc_used committed mapped active active_anon active_cache inactive inact_dirty inact_laundry inact_clean)) {
 
18
        my ($warning, $critical) = get_thresholds($field);
 
19
        my $total = $mems{MemTotal};
 
20
        $total = $mems{SwapTotal} if($field eq "swap");