mirror of
https://github.com/webmin/webmin.git
synced 2026-09-17 11:00:42 +01:00
Number of columns in vmstat output on FreeBSD isn't constant, but the three at always CPU user, kernel and idle time https://github.com/webmin/webmin/issues/659
This commit is contained in:
@@ -92,7 +92,7 @@ if ($gconfig{'os_type'} =~ /-linux$/ || $gconfig{'os_type'} eq 'freebsd') {
|
||||
else {
|
||||
# BSD format
|
||||
# CPU user, kernel, idle
|
||||
$info->{'cpu'} = [ $w[14], $w[15], $w[16], 0, 0 ];
|
||||
$info->{'cpu'} = [ $w[-3], $w[-2], $w[-1], 0, 0 ];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user