[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ceph-commit
Subject:    [ceph-commit] branch next updated. v9.0.0-533-g4487d13
From:       ceph-commit () ceph ! com (ceph ! git)
Date:       2015-05-31 16:41:06
Message-ID: 20150531164107.3F2143F528 () ds3426 ! dreamservers ! com
[Download RAW message or body]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "".

The branch, next has been updated
       via  4487d13cc6a737d36f6cfafdf7c28ef6423e17c1 (commit)
      from  055c0c480e668581df421ebedc0c6e8f23e2aa0b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4487d13cc6a737d36f6cfafdf7c28ef6423e17c1
Author: Rajesh Nambiar <rajesh.n at msystechnologies.com>
Date:   Sun May 31 14:36:08 2015 +0000

    Allow float value by allowing . in input value
    
    Dont bail out if the input value happens to be .
    
    Fixes: #11620
    Signed-off-by: Rajesh Nambiar <rajesh.n at msystechnologies.com>
    Tested-by: Sage Weil <sage at redhat.com>

-----------------------------------------------------------------------

Summary of changes:
 src/common/ceph_argparse.cc |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/common/ceph_argparse.cc b/src/common/ceph_argparse.cc
index 400edee..924b680 100644
--- a/src/common/ceph_argparse.cc
+++ b/src/common/ceph_argparse.cc
@@ -154,6 +154,7 @@ void vec_to_argv(const char *argv0, std::vector<const char*>& args,
 void ceph_arg_value_type(const char * nextargstr, bool *bool_option, bool *bool_numeric)
 {
   bool is_numeric = true;
+  bool is_float = false;
   bool is_option;
 
   if (nextargstr == NULL) {
@@ -173,6 +174,11 @@ void ceph_arg_value_type(const char * nextargstr, bool *bool_option, bool *bool_
 	if (nextargstr[0] == '-')
 	  continue;
       }
+      if ( (nextargstr[i] == '.') && (is_float == false) ) {
+        is_float = true;
+        continue;
+      }
+        
       is_numeric = false;
       break;
     }


hooks/post-receive
-- 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic