|
|
@ -1380,15 +1380,15 @@ static void print_constraint(color_ostream &out, ItemConstraint *cv, bool no_job
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Console::color_value color;
|
|
|
|
Console::color_value color;
|
|
|
|
if (cv->request_resume)
|
|
|
|
if (cv->request_resume)
|
|
|
|
color = Console::COLOR_GREEN;
|
|
|
|
color = COLOR_GREEN;
|
|
|
|
else if (cv->request_suspend)
|
|
|
|
else if (cv->request_suspend)
|
|
|
|
color = Console::COLOR_CYAN;
|
|
|
|
color = COLOR_CYAN;
|
|
|
|
else
|
|
|
|
else
|
|
|
|
color = Console::COLOR_DARKGREY;
|
|
|
|
color = COLOR_DARKGREY;
|
|
|
|
|
|
|
|
|
|
|
|
out.color(color);
|
|
|
|
out.color(color);
|
|
|
|
out << prefix << "Constraint " << flush;
|
|
|
|
out << prefix << "Constraint " << flush;
|
|
|
|
out.color(Console::COLOR_GREY);
|
|
|
|
out.color(COLOR_GREY);
|
|
|
|
out << cv->config.val() << " " << flush;
|
|
|
|
out << cv->config.val() << " " << flush;
|
|
|
|
out.color(color);
|
|
|
|
out.color(color);
|
|
|
|
out << (cv->goalByCount() ? "count " : "amount ")
|
|
|
|
out << (cv->goalByCount() ? "count " : "amount ")
|
|
|
@ -1437,18 +1437,18 @@ static void print_constraint(color_ostream &out, ItemConstraint *cv, bool no_job
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (pj->want_resumed)
|
|
|
|
if (pj->want_resumed)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
out.color(Console::COLOR_YELLOW);
|
|
|
|
out.color(COLOR_YELLOW);
|
|
|
|
out << start << " (delayed)" << endl;
|
|
|
|
out << start << " (delayed)" << endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
out.color(Console::COLOR_BLUE);
|
|
|
|
out.color(COLOR_BLUE);
|
|
|
|
out << start << " (suspended)" << endl;
|
|
|
|
out << start << " (suspended)" << endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
out.color(Console::COLOR_GREEN);
|
|
|
|
out.color(COLOR_GREEN);
|
|
|
|
out << start << endl;
|
|
|
|
out << start << endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1472,11 +1472,11 @@ static void print_job(color_ostream &out, ProtectedJob *pj)
|
|
|
|
isOptionEnabled(CF_AUTOMELT))
|
|
|
|
isOptionEnabled(CF_AUTOMELT))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (meltable_count <= 0)
|
|
|
|
if (meltable_count <= 0)
|
|
|
|
out.color(Console::COLOR_CYAN);
|
|
|
|
out.color(COLOR_CYAN);
|
|
|
|
else if (pj->want_resumed && !pj->isActuallyResumed())
|
|
|
|
else if (pj->want_resumed && !pj->isActuallyResumed())
|
|
|
|
out.color(Console::COLOR_YELLOW);
|
|
|
|
out.color(COLOR_YELLOW);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
out.color(Console::COLOR_GREEN);
|
|
|
|
out.color(COLOR_GREEN);
|
|
|
|
out << " Meltable: " << meltable_count << " objects." << endl;
|
|
|
|
out << " Meltable: " << meltable_count << " objects." << endl;
|
|
|
|
out.reset_color();
|
|
|
|
out.reset_color();
|
|
|
|
}
|
|
|
|
}
|
|
|
|