master/domain.c
branchstable-1.5
changeset 2468 3134b7255f3d
parent 2463 71d38ff288b3
child 2470 4f97d61a8671
equal deleted inserted replaced
2467:74ede087bc85 2468:3134b7255f3d
   656         wc += domain->working_counter[dev_idx];
   656         wc += domain->working_counter[dev_idx];
   657     }
   657     }
   658 
   658 
   659     state->working_counter = wc;
   659     state->working_counter = wc;
   660 
   660 
   661     if (state->working_counter) {
   661     if (wc) {
   662         if (state->working_counter == domain->expected_working_counter) {
   662         if (wc == domain->expected_working_counter) {
   663             state->wc_state = EC_WC_COMPLETE;
   663             state->wc_state = EC_WC_COMPLETE;
   664         } else {
   664         } else {
   665             state->wc_state = EC_WC_INCOMPLETE;
   665             state->wc_state = EC_WC_INCOMPLETE;
   666         }
   666         }
   667     } else {
   667     } else {