From 361aef10099b8c8f5e614ae3be1c7afccae27e92 Mon Sep 17 00:00:00 2001 From: Kevin Fourie Date: Thu, 3 Jul 2008 14:23:56 +0000 Subject: [PATCH] KTS-3474 "Storage Utilization widget display dummy lines on systems using LVM" Fixed. --- plugins/housekeeper/HouseKeeper.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/housekeeper/HouseKeeper.inc.php b/plugins/housekeeper/HouseKeeper.inc.php index 4ed8830..eac33df 100644 --- a/plugins/housekeeper/HouseKeeper.inc.php +++ b/plugins/housekeeper/HouseKeeper.inc.php @@ -89,7 +89,7 @@ class HouseKeeper preg_match('/(.*)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\%\s+(.*)/', $line, $matches); list($line, $filesystem, $size, $used, $avail, $usedp, $mount) = $matches; - if ($size === 0) continue; + if ($size === 0 || empty($size)) continue; if(strtolower(PHP_OS) == 'darwin'){ $size = $size * 1024; @@ -347,4 +347,4 @@ class HouseKeeper } -?> \ No newline at end of file +?> -- libgit2 0.21.4