aboutsummaryrefslogtreecommitdiffstats
path: root/shells/zsh
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2011-11-07 02:35:31 +0800
committerbapt <bapt@FreeBSD.org>2011-11-07 02:35:31 +0800
commit247cc922810791d1cee08d639a31027510db40b1 (patch)
treeee7359951b58fa3a3a8ff8c0ba014f3be7dbe7d9 /shells/zsh
parenta26f46bc970678b55bc4ddec260fcb5e256d116c (diff)
downloadfreebsd-ports-gnome-247cc922810791d1cee08d639a31027510db40b1.tar.gz
freebsd-ports-gnome-247cc922810791d1cee08d639a31027510db40b1.tar.zst
freebsd-ports-gnome-247cc922810791d1cee08d639a31027510db40b1.zip
and with the patch it is even better
Diffstat (limited to 'shells/zsh')
-rw-r--r--shells/zsh/files/patch-Src_jobs.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/shells/zsh/files/patch-Src_jobs.c b/shells/zsh/files/patch-Src_jobs.c
new file mode 100644
index 000000000000..ed5c53d81260
--- /dev/null
+++ b/shells/zsh/files/patch-Src_jobs.c
@@ -0,0 +1,40 @@
+--- Src/jobs.c.orig 2011-11-06 19:20:13.978321106 +0100
++++ Src/jobs.c 2011-11-06 19:22:30.185938633 +0100
+@@ -583,7 +583,6 @@
+ }
+
+ /**/
+-#ifndef HAVE_GETRUSAGE
+ static long clktck = 0;
+
+ /**/
+@@ -613,7 +612,6 @@
+ #endif
+ }
+ /**/
+-#endif
+
+ /**/
+ static void
+@@ -660,10 +658,9 @@
+ user_time = ti->ru_utime.tv_sec + ti->ru_utime.tv_usec / 1000000.0;
+ system_time = ti->ru_stime.tv_sec + ti->ru_stime.tv_usec / 1000000.0;
+ total_time = user_time + system_time;
+- percent = 100.0 * total_time
+- / (real->tv_sec + real->tv_usec / 1000000.0);
++ percent = 100.0 * total_time / elapsed_time;
++ total_time *= (double) clktck;
+ #else
+- set_clktck();
+ user_time = ti->ut / (double) clktck;
+ system_time = ti->st / (double) clktck;
+ percent = 100.0 * (ti->ut + ti->st)
+@@ -749,7 +746,7 @@
+ #endif
+ #ifdef HAVE_STRUCT_RUSAGE_RU_MAXRSS
+ case 'M':
+- fprintf(stderr, "%ld", ti->ru_maxrss / 1024);
++ fprintf(stderr, "%ld", ti->ru_maxrss);
+ break;
+ #endif
+ #ifdef HAVE_STRUCT_RUSAGE_RU_MAJFLT