FreeBSD Bugzilla – Attachment 217710 Details for
Bug 248994
sysutils/htop Update to 3.0.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
htop.diff
htop.diff (text/plain), 5.59 KB, created by
Tobias Kortkamp
on 2020-09-03 06:21:53 UTC
(
hide
)
Description:
htop.diff
Filename:
MIME Type:
Creator:
Tobias Kortkamp
Created:
2020-09-03 06:21:53 UTC
Size:
5.59 KB
patch
obsolete
>Index: sysutils/htop/Makefile >=================================================================== >--- sysutils/htop/Makefile (revision 547420) >+++ sysutils/htop/Makefile (working copy) >@@ -2,8 +2,7 @@ > # $FreeBSD$ > > PORTNAME= htop >-DISTVERSION= 2.2.0 >-PORTREVISION= 1 >+DISTVERSION= 3.0.1 > CATEGORIES= sysutils > > MAINTAINER= gaod@hychen.org >@@ -16,8 +15,7 @@ > GNU_CONFIGURE= yes > CONFIGURE_ARGS= --enable-unicode > USE_GITHUB= yes >-GH_ACCOUNT= hishamhm >-SHEBANG_FILES= scripts/MakeHeader.py >+GH_ACCOUNT= htop-dev > > PLIST_FILES= bin/htop \ > man/man1/htop.1.gz \ >Index: sysutils/htop/distinfo >=================================================================== >--- sysutils/htop/distinfo (revision 547420) >+++ sysutils/htop/distinfo (working copy) >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1524217137 >-SHA256 (hishamhm-htop-2.2.0_GH0.tar.gz) = fb23275090ee5fb19266384c39c69519c8b3844b8f6444730094949c621197c0 >-SIZE (hishamhm-htop-2.2.0_GH0.tar.gz) = 172913 >+TIMESTAMP = 1599114055 >+SHA256 (htop-dev-htop-3.0.1_GH0.tar.gz) = 8465164bc085f5f1813e1d3f6c4b9b56bf4c95cc12226a5367e65794949b01ca >+SIZE (htop-dev-htop-3.0.1_GH0.tar.gz) = 179925 >Index: sysutils/htop/files/patch-CRT.h >=================================================================== >--- sysutils/htop/files/patch-CRT.h (revision 547420) >+++ sysutils/htop/files/patch-CRT.h (nonexistent) >@@ -1,27 +0,0 @@ >---- CRT.h.orig 2018-04-10 13:42:59 UTC >-+++ CRT.h >-@@ -140,7 +140,7 @@ extern const char **CRT_treeStr; >- >- extern int CRT_delay; >- >--int* CRT_colors; >-+extern int* CRT_colors; >- >- extern int CRT_colorSchemes[LAST_COLORSCHEME][LAST_COLORELEMENT]; >- >-@@ -150,13 +150,13 @@ extern int CRT_scrollHAmount; >- >- extern int CRT_scrollWheelVAmount; >- >--char* CRT_termType; >-+extern char* CRT_termType; >- >- // TODO move color scheme to Settings, perhaps? >- >- extern int CRT_colorScheme; >- >--void *backtraceArray[128]; >-+extern void *backtraceArray[128]; >- >- #if HAVE_SETUID_ENABLED >- > >Property changes on: sysutils/htop/files/patch-CRT.h >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Deleted: svn:eol-style >## -1 +0,0 ## >-native >\ No newline at end of property >Deleted: svn:mime-type >## -1 +0,0 ## >-text/plain >\ No newline at end of property >Index: sysutils/htop/files/patch-freebsd_FreeBSDProcessList.c >=================================================================== >--- sysutils/htop/files/patch-freebsd_FreeBSDProcessList.c (revision 547420) >+++ sysutils/htop/files/patch-freebsd_FreeBSDProcessList.c (working copy) >@@ -1,7 +1,3 @@ >-Fix memory display in the header on FreeBSD/powerpc >- >-https://github.com/hishamhm/htop/pull/871 >- > --- freebsd/FreeBSDProcessList.c.orig 2018-04-10 13:42:59 UTC > +++ freebsd/FreeBSDProcessList.c > @@ -28,8 +28,9 @@ in the source distribution for its full text. >@@ -15,64 +11,3 @@ > typedef struct CPUData_ { > > double userPercent; >-@@ -296,31 +297,46 @@ static inline void FreeBSDProcessList_scanMemoryInfo(P >- // >- // htop_used = active + (wired - arc) >- // htop_cache = buffers + cache + arc >-- size_t len = sizeof(pl->totalMem); >-+ u_long totalMem; >-+ u_int memActive, memWire, cachedMem; >-+ long buffersMem; >-+ uint64_t memZfsArc; >-+ size_t len; >- >- //disabled for now, as it is always smaller than phycal amount of memory... >- //...to avoid "where is my memory?" questions >- //sysctl(MIB_vm_stats_vm_v_page_count, 4, &(pl->totalMem), &len, NULL, 0); >- //pl->totalMem *= pageSizeKb; >-- sysctl(MIB_hw_physmem, 2, &(pl->totalMem), &len, NULL, 0); >-- pl->totalMem /= 1024; >-+ len = sizeof(totalMem); >-+ sysctl(MIB_hw_physmem, 2, &(totalMem), &len, NULL, 0); >-+ totalMem /= 1024; >-+ pl->totalMem = totalMem; >- >-- sysctl(MIB_vm_stats_vm_v_active_count, 4, &(fpl->memActive), &len, NULL, 0); >-- fpl->memActive *= pageSizeKb; >-+ len = sizeof(memActive); >-+ sysctl(MIB_vm_stats_vm_v_active_count, 4, &(memActive), &len, NULL, 0); >-+ memActive *= pageSizeKb; >-+ fpl->memActive = memActive; >- >-- sysctl(MIB_vm_stats_vm_v_wire_count, 4, &(fpl->memWire), &len, NULL, 0); >-- fpl->memWire *= pageSizeKb; >-+ len = sizeof(memWire); >-+ sysctl(MIB_vm_stats_vm_v_wire_count, 4, &(memWire), &len, NULL, 0); >-+ memWire *= pageSizeKb; >-+ fpl->memWire = memWire; >- >-- sysctl(MIB_vfs_bufspace, 2, &(pl->buffersMem), &len, NULL, 0); >-- pl->buffersMem /= 1024; >-+ len = sizeof(buffersMem); >-+ sysctl(MIB_vfs_bufspace, 2, &(buffersMem), &len, NULL, 0); >-+ buffersMem /= 1024; >-+ pl->buffersMem = buffersMem; >- >-- sysctl(MIB_vm_stats_vm_v_cache_count, 4, &(pl->cachedMem), &len, NULL, 0); >-- pl->cachedMem *= pageSizeKb; >-+ len = sizeof(cachedMem); >-+ sysctl(MIB_vm_stats_vm_v_cache_count, 4, &(cachedMem), &len, NULL, 0); >-+ cachedMem *= pageSizeKb; >-+ pl->cachedMem = cachedMem; >- >- if (fpl->zfsArcEnabled) { >-- len = sizeof(fpl->memZfsArc); >-- sysctl(MIB_kstat_zfs_misc_arcstats_size, 5, &(fpl->memZfsArc), &len , NULL, 0); >-- fpl->memZfsArc /= 1024; >-+ len = sizeof(memZfsArc); >-+ sysctl(MIB_kstat_zfs_misc_arcstats_size, 5, &(memZfsArc), &len , NULL, 0); >-+ memZfsArc /= 1024; >-+ fpl->memZfsArc = memZfsArc; >- fpl->memWire -= fpl->memZfsArc; >- pl->cachedMem += fpl->memZfsArc; >- // maybe when we learn how to make custom memory meter >Index: sysutils/htop/pkg-descr >=================================================================== >--- sysutils/htop/pkg-descr (revision 547420) >+++ sysutils/htop/pkg-descr (working copy) >@@ -17,4 +17,4 @@ > * In 'htop' you can kill multiple processes at once. > * 'top' is older, hence, more tested. > >-WWW: https://hisham.hm/htop/ >+WWW: https://htop.dev/
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
Flags:
tobik
:
maintainer-approval?
Actions:
View
|
Diff
Attachments on
bug 248994
:
217622
|
217654
|
217655
|
217709
| 217710