Browse files

Update cpu_by_process

fix, plugin didn't worked in munin 2.0: config param is in ARGV[0], not ARGV[1]
  • Loading branch information...
1 parent 21a31a4 commit f82b011c4e984aa8e0d2e6af33c64bfa2d30b28f @creativeprogramming creativeprogramming committed Mar 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/system/cpu_by_process
View
2 plugins/system/cpu_by_process
@@ -75,7 +75,7 @@ foreach my $process (keys %total_cpu_by_process)
close(PS);
-if (@ARGV and $ARGV[1] eq "config")
+if (@ARGV and $ARGV[0] eq "config")
{
print <<END;
graph_title CPU time by Process

0 comments on commit f82b011

Please sign in to comment.