Quellcode durchsuchen

test mytop

master
10195501441 vor 3 Jahren
Ursprung
Commit
b0f535cac5
2 geänderte Dateien mit 5 neuen und 7 gelöschten Zeilen
  1. +4
    -5
      yeeshell.c
  2. +1
    -2
      yeeshell.h

+ 4
- 5
yeeshell.c Datei anzeigen

@ -35,6 +35,10 @@ 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;
@ -695,9 +699,4 @@ u64_t cputicks(struct proc *p1, struct proc *p2, int timemode)
}
return t;
}
static inline u64_t make64(unsigned long lo, unsigned long hi)
{
return ((u64_t)hi << 32) | (u64_t)lo;
}

+ 1
- 2
yeeshell.h Datei anzeigen

@ -96,5 +96,4 @@ 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);
static inline u64_t make64(unsigned long lo, unsigned long hi);
u64_t cputicks(struct proc *p1, struct proc *p2, int timemode);

Laden…
Abbrechen
Speichern