mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
remove unused disk_usage function
This commit is contained in:
parent
6922e35e95
commit
5fa5cbb825
@ -205,13 +205,6 @@ function get_mounted_filesystems() {
|
||||
return $filesystems;
|
||||
}
|
||||
|
||||
function disk_usage($slice = '/') {
|
||||
$dfout = "";
|
||||
exec("/bin/df -h {$slice} | /usr/bin/tail -n 1 | /usr/bin/awk '{ print $5 }' | /usr/bin/cut -d '%' -f 1", $dfout);
|
||||
$diskusage = trim($dfout[0]);
|
||||
|
||||
return $diskusage;
|
||||
}
|
||||
|
||||
function swap_usage() {
|
||||
exec("/usr/sbin/swapinfo", $swap_info);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user