Clean up JSON reporting of booleans and network state.

This commit is contained in:
JoelKatz
2013-01-18 17:38:11 -08:00
parent 032022a5bf
commit 80d98e55a9
5 changed files with 30 additions and 21 deletions

View File

@@ -159,7 +159,7 @@ Json::Value JobQueue::getJson(int)
{
Json::Value pri(Json::objectValue);
if (isOver)
pri["over_target"] = "true";
pri["over_target"] = true;
pri["job_type"] = Job::toString(static_cast<JobType>(i));
if (jobCount != 0)
pri["waiting"] = static_cast<int>(jobCount);