Browse Source

Revert "Only iterate over workers in workerstats if some are left in the worker_instances list"

This reverts commit 450f2040b2.

Of no advantage.
master
ckolivas 10 years ago
parent
commit
11fc2fb67d
  1. 3
      src/stratifier.c

3
src/stratifier.c

@ -3517,9 +3517,6 @@ static void *statsupdate(void *arg)
worker_instance_t *worker; worker_instance_t *worker;
bool idle = false; bool idle = false;
if (instance->workers < 1)
continue;
/* Decay times per worker */ /* Decay times per worker */
DL_FOREACH(instance->worker_instances, worker) { DL_FOREACH(instance->worker_instances, worker) {
per_tdiff = tvdiff(&now, &worker->last_share); per_tdiff = tvdiff(&now, &worker->last_share);

Loading…
Cancel
Save