mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fixup mbuf stats function
This commit is contained in:
parent
eb8e0aa9d6
commit
48a0149690
@ -164,9 +164,10 @@ function get_hwtype() {
|
||||
}
|
||||
|
||||
function get_mbuf() {
|
||||
$mbufs_output=trim(`netstat -mb | grep "mbuf clusters in use" | awk '{ print $1 }'`);
|
||||
$mbufs_output=trim(`/usr/bin/netstat -mb | /usr/bin/grep "mbuf clusters in use" | /usr/bin/awk '{ print $1 }'`);
|
||||
list( $mbufs_current, $mbufs_cache, $mbufs_total, $mbufs_max ) = explode( "/", $mbufs_output);
|
||||
$mbufusage = round(($mbufs_total / $mbufs_max) * 100);
|
||||
return $mbufusage;
|
||||
}
|
||||
|
||||
function get_temp() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user