Changeset ee35ba0b in mainline for uspace/app/top/top.h


Ignore:
Timestamp:
2010-04-03T15:26:34Z (14 years ago)
Author:
Stanislav Kozina <stanislav.kozina@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
452268a
Parents:
8b2aba5
Message:

top echoes also percentage usage of cpu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/top/top.h

    r8b2aba5 ree35ba0b  
    3838
    3939typedef struct {
     40        float idle;
     41        float busy;
     42} cpu_perc_t;
     43
     44typedef struct {
     45        float user;
     46        float system;
     47        float memory;
     48} task_perc_t;
     49
     50typedef struct {
    4051        unsigned int hours;
    4152        unsigned int minutes;
     
    4960        unsigned long load[3];
    5061
     62        unsigned int task_count;
    5163        task_id_t *tasks;
    52         unsigned int task_count;
    5364
     65        unsigned int cpu_count;
    5466        uspace_cpu_info_t *cpus;
    55         unsigned int cpu_count;
     67        cpu_perc_t *cpu_perc;
    5668} data_t;
    5769
Note: See TracChangeset for help on using the changeset viewer.