瀏覽代碼

test mytop

master
10195501441 3 年之前
父節點
當前提交
f085b3447f
共有 2 個文件被更改,包括 2 次插入7 次删除
  1. +1
    -5
      yeeshell.c
  2. +1
    -2
      yeeshell.h

+ 1
- 5
yeeshell.c 查看文件

@ -35,11 +35,7 @@ char *history[CMDLINE_HISTORY_MAX_QUANTITY];
int cmdline_amount = 0;
struct proc *proc = NULL, *prev_proc = NULL;
static inline u64_t make64(unsigned long lo, unsigned long hi)
{
return ((u64_t)hi << 32) | (u64_t)lo;
}
int nr_total = 0;
unsigned int nr_procs, nr_tasks;
int main()

+ 1
- 2
yeeshell.h 查看文件

@ -95,5 +95,4 @@ void get_procs();
void parse_dir();
void parse_file(pid_t pid);
void getkinfo();
void print_procs(struct proc *proc1, struct proc *proc2, int cputimemode);
u64_t cputicks(struct proc *p1, struct proc *p2, int timemode);
void print_procs(struct proc *proc1, struct proc *proc2, int cputimemode);

Loading…
取消
儲存