| 1177 | static std::string shortJobDescription(df::job *job); |
| 1178 | |
| 1179 | static void setJobResumed(color_ostream &out, ProtectedJob *pj, bool goal) |
| 1180 | { |
| 1181 | bool current = pj->isResumed(); |
| 1182 | |
| 1183 | pj->set_resumed(goal); |
| 1184 | |
| 1185 | if (goal != current) |
| 1186 | { |
| 1187 | out.print("{} {}{}\n", |
| 1188 | (goal ? "Resuming" : "Suspending"), |
| 1189 | shortJobDescription(pj->actual_job), |
| 1190 | (!goal || pj->isActuallyResumed() ? "" : " (delayed)")); |
| 1191 | } |
| 1192 | } |
| 1193 | |
| 1194 | static void update_jobs_by_constraints(color_ostream &out) |
| 1195 | { |
no test coverage detected