Commit c6b642f8ddb524ee829f6e95f2607bcf8a73c6d3
1 parent
9615373d
KTS-1753
" Implement Disk Usage Plugin" Updated. Removed empty line from DF Committed By: Conrad Vermeulen Reviewed By: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7519 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
0 deletions
plugins/housekeeper/DiskUsageDashlet.inc.php
| ... | ... | @@ -102,6 +102,7 @@ class DiskUsageDashlet extends KTBaseDashlet |
| 102 | 102 | $usage=array(); |
| 103 | 103 | foreach($result as $line) |
| 104 | 104 | { |
| 105 | + if (empty($line)) continue; | |
| 105 | 106 | preg_match('/(.*)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\%\s+(.*)/', $line, $matches); |
| 106 | 107 | list($line, $filesystem, $size, $used, $avail, $usedp, $mount) = $matches; |
| 107 | 108 | ... | ... |