From 2b302015e7635070b494f1abb5862b048fe74926 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Tue, 24 Apr 2012 10:30:43 -0700 Subject: [PATCH] mon: fix pgmonitor ratio commands The indices were set incorrectly when I whipped thi sup. That's what you get for not testing nor being careful enough in review. Signed-off-by: Greg Farnum --- src/mon/PGMonitor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index e65e6825c6d80..e80f727c8fc82 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -1072,7 +1072,7 @@ bool PGMonitor::prepare_command(MMonCommand *m) ss << "set_full_ratio takes exactly one argument: the new full ratio"; goto out; } - const char *start = m->cmd[1].c_str(); + const char *start = m->cmd[2].c_str(); char *end = (char *)start; float n = strtof(start, &end); if (*end != '\0') { // conversion didn't work @@ -1088,7 +1088,7 @@ bool PGMonitor::prepare_command(MMonCommand *m) ss << "set_nearfull_ratio takes exactly one argument: the new nearfull ratio"; goto out; } - const char *start = m->cmd[1].c_str(); + const char *start = m->cmd[2].c_str(); char *end = (char *)start; float n = strtof(start, &end); if (*end != '\0') { // conversion didn't work -- 2.39.5