Commit 361aef10099b8c8f5e614ae3be1c7afccae27e92

Authored by Kevin Fourie
1 parent e2195f4a

KTS-3474

"Storage Utilization widget display dummy lines on systems using LVM"
Fixed.

Committed by: Kevin Fourie
Reviewed by: Jonathan Byrne


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8746 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/housekeeper/HouseKeeper.inc.php
... ... @@ -89,7 +89,7 @@ class HouseKeeper
89 89 preg_match('/(.*)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\%\s+(.*)/', $line, $matches);
90 90 list($line, $filesystem, $size, $used, $avail, $usedp, $mount) = $matches;
91 91  
92   - if ($size === 0) continue;
  92 + if ($size === 0 || empty($size)) continue;
93 93  
94 94 if(strtolower(PHP_OS) == 'darwin'){
95 95 $size = $size * 1024;
... ... @@ -347,4 +347,4 @@ class HouseKeeper
347 347 }
348 348  
349 349  
350   -?>
351 350 \ No newline at end of file
  351 +?>
... ...