From 301b44ded83d838e495e0e8b9b794fddd8963c73 Mon Sep 17 00:00:00 2001 From: Brian Christiansen <brian@schedmd.com> Date: Fri, 28 Aug 2015 10:40:39 -0700 Subject: [PATCH] Fix setting squeue's --noconvert option. Continuation of 1f831f33afb --- src/squeue/opts.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/squeue/opts.c b/src/squeue/opts.c index 96c90582b85..577911c4717 100644 --- a/src/squeue/opts.c +++ b/src/squeue/opts.c @@ -137,6 +137,8 @@ parse_command_line( int argc, char* argv[] ) {NULL, 0, 0, 0} }; + params.convert_flags = CONVERT_NUM_UNIT_EXACT; + if (getenv("SQUEUE_ALL")) params.all_flag = true; if (getenv("SQUEUE_ARRAY")) @@ -311,7 +313,7 @@ parse_command_line( int argc, char* argv[] ) override_format_env = true; break; case OPT_LONG_NOCONVERT: - params.convert_flags = CONVERT_NUM_UNIT_EXACT; + params.convert_flags |= CONVERT_NUM_UNIT_NO; break; case OPT_LONG_USAGE: _usage(); -- GitLab