diff options
author | Eugene V. Lyubimkin <jackyf.devel@gmail.com> | 2009-03-29 22:37:49 +0300 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:25 +0200 |
commit | 8f33fa7a49b4c60564309f356a37f2a1dfe20c34 (patch) | |
tree | c0e79bdb62f5d4ed68f915d7b01f8f06b9a38ce6 /debian/patches | |
parent | c06bd63994173cf367872ac3317331855c2ce5c6 (diff) | |
download | debian_htop-8f33fa7a49b4c60564309f356a37f2a1dfe20c34.tar.gz debian_htop-8f33fa7a49b4c60564309f356a37f2a1dfe20c34.tar.bz2 debian_htop-8f33fa7a49b4c60564309f356a37f2a1dfe20c34.zip |
Imported Debian patch 0.8.1-6debian/0.8.1-6
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/110-upstream-fix-page-size-on-BSD.patch | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/debian/patches/110-upstream-fix-page-size-on-BSD.patch b/debian/patches/110-upstream-fix-page-size-on-BSD.patch index e73fcb2..1161200 100644 --- a/debian/patches/110-upstream-fix-page-size-on-BSD.patch +++ b/debian/patches/110-upstream-fix-page-size-on-BSD.patch @@ -1,8 +1,8 @@ Fix page size on BSD systems. Index: htop/Process.c =================================================================== ---- htop.orig/Process.c 2009-03-29 20:03:00.601034016 +0300 -+++ htop/Process.c 2009-03-29 20:03:56.029033456 +0300 +--- htop.orig/Process.c 2009-03-29 22:51:01.865040249 +0300 ++++ htop/Process.c 2009-03-29 22:51:02.933034296 +0300 @@ -33,8 +33,9 @@ // This works only with glibc 2.1+. On earlier versions // the behavior is similar to have a hardcoded page size. @@ -35,3 +35,16 @@ Index: htop/Process.c case ST_UID: snprintf(buffer, n, "%4d ", this->st_uid); break; case USER: { if (Process_getuid != this->st_uid) +Index: htop/ProcessList.c +=================================================================== +--- htop.orig/ProcessList.c 2009-03-29 22:48:20.445032821 +0300 ++++ htop/ProcessList.c 2009-03-29 22:51:02.933034296 +0300 +@@ -698,7 +698,7 @@ + period * 100.0; + process->percent_cpu = MAX(MIN(percent_cpu, processors*100.0), 0.0); + +- process->percent_mem = (process->m_resident * PAGE_SIZE) / ++ process->percent_mem = (process->m_resident * PAGE_SIZE_KB) / + (float)(this->totalMem) * + 100.0; + |