Skip to content

Commit 6907010

Browse files
committed
MGM: Fix convert config summary formatting
1 parent d4e40b7 commit 6907010

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

mgm/proc/admin/ConvertCmd.cc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ ConvertCmd::ConfigList(bool json) const
118118
uint64_t running = gOFS->mConverterEngine->NumRunningJobs();
119119
uint64_t failed = gOFS->mConverterEngine->NumFailedJobs();
120120
int64_t pending = gOFS->mConverterEngine->NumPendingJobs();
121-
auto state = (gOFS->mConverterEngine->IsRunning() ? "on" : "off");
122121

123122
if (json) {
124123
Json::Value json;
@@ -133,11 +132,11 @@ ConvertCmd::ConfigList(bool json) const
133132
builder.newStreamWriter());
134133
jsonwriter->write(json, &out);
135134
} else {
136-
out << "Configuration: " << config << " status=" << state << std::endl
137-
<< "Threadpool: " << threadpool << std::endl
138-
<< "Running jobs: " << running << std::endl
139-
<< "Pending jobs: " << pending << std::endl
140-
<< "Failed jobs : " << failed << std::endl;
135+
out << "Configuration: " << config << std::endl
136+
<< "Threadpool : " << threadpool << std::endl
137+
<< "Running jobs : " << running << std::endl
138+
<< "Pending jobs : " << pending << std::endl
139+
<< "Failed jobs : " << failed << std::endl;
141140
}
142141

143142
return out.str();

0 commit comments

Comments
 (0)