mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
(dashboard, widget api) fix 82fd7db543 (commitcomment-17392735)
This commit is contained in:
parent
ed5c0ddeff
commit
de1d8a1492
@ -118,7 +118,7 @@ function system_api_disk()
|
||||
$result['devices'] = array();
|
||||
exec("/bin/df -Tht ufs,tmpfs,zfs,cd9660", $disk_info);
|
||||
foreach ($disk_info as $line) {
|
||||
if (strpos($line,'/dev/') !== false) {
|
||||
if (strpos($line,'Mounted on') === false) {
|
||||
$parts = preg_split('/\s+/', $line);
|
||||
$diskItem = array();
|
||||
$diskItem['device'] = $parts[0];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user