Changeset 591

Show
Ignore:
Timestamp:
05/14/07 18:37:57 (2 years ago)
Author:
chtekk
Message:

Tasks are of little interest to the user.
Use the total nr of threads for the general status, leave NPROC rlimit value in vx.limstatus only.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/vcd/methods/vx/vx_status.c

    r589 r591  
    4545        char *name; 
    4646        xid_t xid; 
    47         int running = 0, nproc = 0, tasks = 0, thr_total = 0, thr_running = 0; 
    48         int thr_unintr = 0, thr_onhold = 0, forks_total = 0, uptime = 0; 
     47        int running = 0, thr_total = 0, thr_running = 0, thr_unintr = 0, thr_onhold = 0; 
     48        int forks_total = 0, uptime = 0; 
    4949        char *load1m = NULL, *load5m = NULL, *load15m = NULL; 
    5050 
     
    6363                if (errno == ESRCH) { 
    6464                        running     = 0; 
    65                         nproc       = 0; 
    66                         tasks       = 0; 
    6765                        thr_total   = 0; 
    6866                        thr_running = 0; 
     
    8280        else { 
    8381                vx_stat_t statb; 
    84                 vx_limit_stat_t limnproc; 
    85  
    86                 limnproc.id = RLIMIT_NPROC; 
    8782 
    8883                if (vx_stat(xid, &statb) == -1) 
    8984                        log_perror("vx_stat(%d)", xid); 
    9085 
    91                 else if (vx_limit_stat(xid, &limnproc) == -1) 
    92                         log_perror("vx_limit_stat(NPROC, %d)", xid); 
    93  
    9486                else { 
    9587                        running     = 1; 
    96                         nproc       = (int) limnproc.value; 
    97                         tasks       = statb.tasks; 
    9888                        thr_total   = statb.nr_threads; 
    9989                        thr_running = statb.nr_running; 
     
    10999 
    110100        response = xmlrpc_build_value(env, 
    111                 "{s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:s,s:s,s:s}", 
     101                "{s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:s,s:s,s:s}", 
    112102                "running",     running, 
    113                 "nproc",       nproc, 
    114                 "tasks",       tasks, 
    115103                "thr_total",   thr_total, 
    116104                "thr_running", thr_running,