Skip to content

Commit b1955bd

Browse files
client: always show message when resuming computation
... we weren't showing it if throttled
1 parent f4af360 commit b1955bd

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

client/client_state.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,8 +1180,13 @@ bool CLIENT_STATE::poll_slow_events() {
11801180
}
11811181
last_suspend_reason = suspend_reason;
11821182
} else {
1183-
if (tasks_suspended && !tasks_throttled) {
1184-
resume_tasks(last_suspend_reason);
1183+
if (tasks_suspended) {
1184+
if (log_flags.task) {
1185+
msg_printf(NULL, MSG_INFO, "Resuming computation");
1186+
}
1187+
if (!tasks_throttled) {
1188+
resume_tasks(last_suspend_reason);
1189+
}
11851190
}
11861191
}
11871192
} else if (first) {

client/cs_prefs.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,6 @@ int CLIENT_STATE::resume_tasks(int reason) {
390390
if (reason == SUSPEND_REASON_CPU_THROTTLE) {
391391
active_tasks.unsuspend_all(SUSPEND_REASON_CPU_THROTTLE);
392392
} else {
393-
if (log_flags.task) {
394-
msg_printf(NULL, MSG_INFO, "Resuming computation");
395-
}
396393
active_tasks.unsuspend_all();
397394
request_schedule_cpus("Resuming computation");
398395
}

0 commit comments

Comments
 (0)