FreeBSD Bugzilla – Attachment 111539 Details for
Bug 152820
[patch] shells/zsh: correct memory report for time builtin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
a.diff
a.diff (text/plain), 932 bytes, created by
swell.k
on 2010-12-04 03:50:10 UTC
(
hide
)
Description:
a.diff
Filename:
MIME Type:
Creator:
swell.k
Created:
2010-12-04 03:50:10 UTC
Size:
932 bytes
patch
obsolete
>Index: shells/zsh/files/patch-Src-jobs.c >=================================================================== >RCS file: shells/zsh/files/patch-Src-jobs.c >diff -N shells/zsh/files/patch-Src-jobs.c >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ shells/zsh/files/patch-Src-jobs.c 4 Dec 2010 02:45:40 -0000 >@@ -0,0 +1,19 @@ >+--- Src/jobs.c~ >++++ Src/jobs.c >+@@ -596,6 +596,7 @@ printtime(struct timeval *real, child_ti >+ total_time = user_time + system_time; >+ percent = 100.0 * total_time >+ / (real->tv_sec + real->tv_usec / 1000000.0); >++ total_time *= sysconf(_SC_CLK_TCK); >+ #else >+ set_clktck(); >+ user_time = ti->ut / (double) clktck; >+@@ -683,7 +684,7 @@ printtime(struct timeval *real, child_ti >+ #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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 152820
: 111539