diff --git a/fun_2.c b/fun_2.c index 08787f7..1cbc401 100644 --- a/fun_2.c +++ b/fun_2.c @@ -13,8 +13,14 @@ void history(char *cmdline) void print_history(char *argv) { - - int i = num - atoi(argv); + int i = 0; + if(argv == NULL) + { + for(; ip_endpoint == p2->p_endpoint) { - t = t + p2->p_cpucycles[i] - p1->p_cpucycles[i]; - } else { - t = t + p2->p_cpucycles[i]; - } - } -// for(i = 0; i < CPUTIMENAMES; i++) { -// if(!CPUTIME(timemode, i)) -// continue; -// if(proc->p_endpoint == prev_proc->p_endpoint) { -// t = t + prev_proc->p_cpucycles[i] - proc->p_cpucycles[i]; -// } else { -// t = t + prev_proc->p_cpucycles[i]; -// } -// } - return t; -} */ \ No newline at end of file diff --git a/main b/main index fd11ba0..1f5e5d4 100755 Binary files a/main and b/main differ