Skip to content

Commit

Permalink
Windows compiler incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Minnoy committed Feb 19, 2021
1 parent df0fffa commit a954b99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1217,9 +1217,9 @@ void* throttler(void*) {
const auto task_state = apt->task_state();
// Filter out CPU tasks
if (apt->result->dont_throttle()) continue;
if (task_state != PROCESS_EXECUTING and task_state != PROCESS_SUSPENDED) continue;
if (task_state != PROCESS_EXECUTING && task_state != PROCESS_SUSPENDED) continue;
// Unsuspend if no limit
if (cpu_usage_limit >= 100 and task_state == PROCESS_SUSPENDED) {
if (cpu_usage_limit >= 100 && task_state == PROCESS_SUSPENDED) {
apt->throttler_remaining_runtime = 0;
apt->unsuspend(SUSPEND_REASON_CPU_THROTTLE);
} // if
Expand All @@ -1240,7 +1240,7 @@ void* throttler(void*) {
const auto task_state = apt->task_state();
// Filter out CPU tasks
if (apt->result->dont_throttle()) continue;
if (task_state != PROCESS_EXECUTING and task_state != PROCESS_SUSPENDED) continue;
if (task_state != PROCESS_EXECUTING && task_state != PROCESS_SUSPENDED) continue;

// Determine start tick; spread start of tasks evenly over 100 second window
apt->throttler_start_tick = tick % 100;
Expand Down

0 comments on commit a954b99

Please sign in to comment.