Task #117

communication.c: work on send_computer_status()

Added by Andreas Schröder almost 4 years ago.

Status:NewStart date:06/02/2010
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:all
Target version:0.64.5

Description

  /* Count the tasks. (Shouldn't be necessary) */
  // FIXME: Remove this ?
  ntasks = 0;
  nrunning = 0;
  for (i=0;i<MAXTASKS;i++) {
    if (status->task[i].used) {
      ntasks++;
      if (status->task[i].status != TASKSTATUS_FINISHED) {
        nrunning++;
      }
    }
  }
  status->ntasks = ntasks;
  status->nrunning = nrunning;

Also available in: Atom PDF