From 036c6316de67586705c4a8b9674dc9e5196d0ad4 Mon Sep 17 00:00:00 2001 From: "Dong H. Ahn" Date: Wed, 22 Nov 2017 21:46:11 -0800 Subject: [PATCH] jobspec: replace minus operator to multiplication Make the implementation come to compliance with RFC14's JRC rule section. Tested with resource-query and this one-liner seems enough. --- src/common/libjobspec/jobspec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/libjobspec/jobspec.cpp b/src/common/libjobspec/jobspec.cpp index e40591091bd3..24b8ff9e432a 100644 --- a/src/common/libjobspec/jobspec.cpp +++ b/src/common/libjobspec/jobspec.cpp @@ -118,7 +118,7 @@ void parse_yaml_count (Resource& res, const YAML::Node &cnode) res.count.oper = cnode["operator"].as(); switch (res.count.oper) { case '+': - case '-': + case '*': case '^': break; default: