Changeset 452268a in mainline for uspace/app/top/ps.c


Ignore:
Timestamp:
2010-04-03T16:52:07Z (14 years ago)
Author:
Stanislav Kozina <stanislav.kozina@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
acc3f745
Parents:
ee35ba0b
Message:

top echoes also percentage differencies of task cycles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/top/ps.c

    ree35ba0b r452268a  
    5858};
    5959
    60 unsigned int get_tasks(task_id_t **out_tasks)
     60unsigned int get_tasks(task_info_t **out_infos)
    6161{
    6262        int task_count = TASK_COUNT;
     
    7070        }
    7171
    72 /*
    7372        int i;
     73        task_info_t *taskinfos = malloc(result * sizeof(task_info_t));
    7474        for (i = 0; i < result; ++i) {
    75                 task_info_t taskinfo;
    76                 get_task_info(tasks[i], &taskinfo);
     75                get_task_info(tasks[i], &taskinfos[i]);
    7776        }
    78         */
    7977
    80         *out_tasks = tasks;
     78        *out_infos = taskinfos;
    8179        return result;
    8280}
Note: See TracChangeset for help on using the changeset viewer.