From 3b185850e369cc34641cf9f36533f52f90e7abe6 Mon Sep 17 00:00:00 2001
From: Fulvio Galeazzi <fulvio.galeazzi@garr.it>
Date: Thu, 5 Apr 2018 14:11:51 +0200
Subject: [PATCH] 2018-04-05:  FG;  Bug fix.

---
 Ceph/Script/queryCephDisks.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Ceph/Script/queryCephDisks.pl b/Ceph/Script/queryCephDisks.pl
index 1d947e6..2422479 100755
--- a/Ceph/Script/queryCephDisks.pl
+++ b/Ceph/Script/queryCephDisks.pl
@@ -132,7 +132,7 @@ if (defined $opt_select) {
 	$selectSize += 0.;
     }
 }
-unless ($selectSizeOrDev and $selectSize >= 0.) {
+if ($selectSizeOrDev > 0 and $selectSize < 0.) {
     fail_usage "SelectSize option -s expects positive float, when used together with -p option.";
 }
 #
-- 
GitLab