Added
Link Here
|
1 |
--- Src/jobs.c~ |
2 |
+++ Src/jobs.c |
3 |
@@ -596,6 +596,7 @@ printtime(struct timeval *real, child_ti |
4 |
total_time = user_time + system_time; |
5 |
percent = 100.0 * total_time |
6 |
/ (real->tv_sec + real->tv_usec / 1000000.0); |
7 |
+ total_time *= sysconf(_SC_CLK_TCK); |
8 |
#else |
9 |
set_clktck(); |
10 |
user_time = ti->ut / (double) clktck; |
11 |
@@ -683,7 +684,7 @@ printtime(struct timeval *real, child_ti |
12 |
#endif |
13 |
#ifdef HAVE_STRUCT_RUSAGE_RU_MAXRSS |
14 |
case 'M': |
15 |
- fprintf(stderr, "%ld", ti->ru_maxrss / 1024); |
16 |
+ fprintf(stderr, "%ld", ti->ru_maxrss); |
17 |
break; |
18 |
#endif |
19 |
#ifdef HAVE_STRUCT_RUSAGE_RU_MAJFLT |