From f085b3447ff6d1a6e2171ebcf56f7ef62843182a Mon Sep 17 00:00:00 2001 From: 10195501441 <10195501441@stu.ecnu.edu.com> Date: Thu, 18 Mar 2021 17:27:12 +0800 Subject: [PATCH] test mytop --- yeeshell.c | 6 +----- yeeshell.h | 3 +-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/yeeshell.c b/yeeshell.c index b246071..d5896ab 100644 --- a/yeeshell.c +++ b/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() diff --git a/yeeshell.h b/yeeshell.h index 91140d9..ec01430 100644 --- a/yeeshell.h +++ b/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); \ No newline at end of file +void print_procs(struct proc *proc1, struct proc *proc2, int cputimemode); \ No newline at end of file