Skip to content

Commit 36db012

Browse files
primenet correction nf status on prp badly
1 parent 5ceb0c9 commit 36db012

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/io/JsonBuilder.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,14 @@ std::cerr << "[DBG] knownFactors_start=" << knownFactors_start.size()
397397

398398

399399
oss << "{";
400-
oss << "\"status\":" << jsonEscape((!newFactors.empty() ? "F" : "NF"));
400+
std::string statusOut = status;
401+
402+
if (worktype == "pm1" || worktype == "ecm" ) {
403+
statusOut = (!newFactors.empty() ? "F" : "NF");
404+
}
405+
406+
oss << "\"status\":" << jsonEscape(statusOut);
407+
//oss << "\"status\":" << jsonEscape((!newFactors.empty() ? "F" : "NF"));
401408
oss << ",\"exponent\":" << exponent;
402409
oss << ",\"worktype\":" << jsonEscape(canonWT);
403410
if (!knownFactors.empty()) {

0 commit comments

Comments
 (0)