FreeBSD Bugzilla – Attachment 5775 Details for
Bug 13557
[PATCH] top(1) sorts processes incorrectly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.00 KB, created by
Eric Peters
on 1999-09-03 09:30:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Eric Peters
Created:
1999-09-03 09:30:01 UTC
Size:
2.00 KB
patch
obsolete
>*** usr.bin/top/machine.c.orig Fri Sep 3 00:57:09 1999 >--- usr.bin/top/machine.c Fri Sep 3 01:02:07 1999 >*************** >*** 743,749 **** > (result = lresult > 0 ? 1 : lresult < 0 ? -1 : 0) == 0) > > #define ORDERKEY_CPTICKS \ >! if ((result = PP(p2, p_runtime) - PP(p1, p_runtime)) == 0) > > #define ORDERKEY_STATE \ > if ((result = sorted_state[(unsigned char) PP(p2, p_stat)] - \ >--- 743,750 ---- > (result = lresult > 0 ? 1 : lresult < 0 ? -1 : 0) == 0) > > #define ORDERKEY_CPTICKS \ >! if (llresult = (long long) PP(p2, p_runtime) - (long long) PP(p1, p_runtime), \ >! (result = llresult > 0 ? 1 : llresult < 0 ? -1 : 0) == 0) > > #define ORDERKEY_STATE \ > if ((result = sorted_state[(unsigned char) PP(p2, p_stat)] - \ >*************** >*** 775,780 **** >--- 776,782 ---- > register struct kinfo_proc *p2; > register int result; > register pctcpu lresult; >+ long long llresult; > > /* remove one level of indirection */ > p1 = *(struct kinfo_proc **) pp1; >*************** >*** 817,822 **** >--- 819,825 ---- > register struct kinfo_proc *p2; > register int result; > register pctcpu lresult; >+ long long llresult; > > /* remove one level of indirection */ > p1 = *(struct kinfo_proc **) pp1; >*************** >*** 846,851 **** >--- 849,855 ---- > register struct kinfo_proc *p2; > register int result; > register pctcpu lresult; >+ long long llresult; > > /* remove one level of indirection */ > p1 = *(struct kinfo_proc **) pp1; >*************** >*** 875,880 **** >--- 879,885 ---- > register struct kinfo_proc *p2; > register int result; > register pctcpu lresult; >+ long long llresult; > > /* remove one level of indirection */ > p1 = *(struct kinfo_proc **) pp1; >*************** >*** 904,909 **** >--- 909,915 ---- > register struct kinfo_proc *p2; > register int result; > register pctcpu lresult; >+ long long llresult; > > /* remove one level of indirection */ > p1 = *(struct kinfo_proc **) pp1;
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 13557
: 5775