Ticket #598: munin_plugin_irqstats.patch

File munin_plugin_irqstats.patch, 396 bytes (added by sumpfralle, 3 years ago)

this patch allows non-numeric IRQ names (e.g. NMI/RES/CAL/...) without a warning message

  • irqstats

    old new  
    7070    $irq = shift @data; 
    7171    next unless length $irq; 
    7272    chop $irq; 
    73     if ($irq =~ /^\d+$/) { 
     73    # numeric values or something like NMI/RES/CAL are accepted 
     74    if (($irq =~ /^\d+$/) || ($irq =~/^[A-Z]{3}$/)) { 
    7475        $label = pop @data; 
    7576        $type = pop @data; 
    7677    }