mirror of https://github.com/mikaku/Monitorix.git
fixed messages of 'use of uninitialized values' in 'proc' graph on FreeBSD systems
This commit is contained in:
parent
f29d94138d
commit
4a1ec4f598
|
@ -180,7 +180,8 @@ sub proc_update {
|
|||
my @data = split(' ', <IN>);
|
||||
close(IN);
|
||||
chomp($ncpu);
|
||||
for($n = 0; $n < $proc->{max}; $n++) {
|
||||
$ncpu = min($ncpu, $proc->{max});
|
||||
for($n = 0; $n < $ncpu; $n++) {
|
||||
$str = "cpu" . $n;
|
||||
$from = $n * 5;
|
||||
$to = $from + 4;
|
||||
|
|
Loading…
Reference in New Issue