Commit graph

12 commits

Author SHA1 Message Date
Doug Torrance 1b4708cb92 Remove trailing whitespace in recently added dockapps. 2016-12-24 12:32:17 +00:00
Doug Torrance 448b5263c0 wmtop: Bump to version 0.85. 2016-02-08 19:17:21 +05:30
Doug Torrance e27657432c wmtop: Remove .cvsignore. 2016-02-08 19:17:21 +05:30
Doug Torrance a7a8760464 wmtop: Switch build system to autotools.
To take advantage of this, we rename CHANGES to ChangeLog and also replace
the WMTOP_VERSION macro with PACKAGE_VERSION.
2016-02-08 19:17:21 +05:30
Doug Torrance 5fd5619cc4 wmtop: Use proper int types.
Based partially on a patch by wbk to fix Gentoo bug #410093 [1].  From the
bug report:

  After fixing the /proc/meminfo issue, another bug will emerge on systems
  where total system RAM in bytes exceeds INT_MAX. The correct top three
  processes will be identified, but their load bars will have the wrong
  value. This is caused by a value overflow due to storing total system
  memory in an "int" type variable. We will end up thinking ((Total RAM)
  modulo (INT_MAX)) is our total system RAM, so our percentages will be
  inflated when drawing the load bar. This fix will require a bit more care
  to follow the flow of data and ensure this value isn't being cast to "int"
  along the way. Function return types will need to be changed.

[1] https://bugs.gentoo.org/show_bug.cgi?id=410093
2016-02-08 19:17:21 +05:30
Doug Torrance 9450f4cfd2 wmtop: Remove inline keywords.
Otherwise, build fails with "error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘void’" if using ANSI C.
2016-02-08 19:17:21 +05:30
Doug Torrance 62174abc69 wmtop: Add #define _BSD_SOURCE.
Avoid implicit declaration warnings (usleep and getpagesize) if compiled
using C99 standard.
2016-02-08 19:17:21 +05:30
Doug Torrance e8f6ae1cdd wmtop: Switch user variable from int to uid_t.
Fixes 'comparison between signed and unsigned integer expressions' compiler
warnings.
2016-02-08 19:17:21 +05:30
Doug Torrance c52108a87c wmtop: Remove wmgeneral directory and use libdockapp. 2016-02-08 19:17:21 +05:30
Doug Torrance 5586e092a7 wmtop: Escape minus signs and fix spelling errors in manpage.
Obtained from [1].

[1] https://sources.debian.net/src/wmtop/0.84-12/debian/patches/fix_manpage.patch/
2016-02-08 19:17:21 +05:30
Doug Torrance 229fe58553 wmtop: Fix incorrect memory usage.
Patch by Dwayne C. Litzenberger <dlitz@dlitz.net> to fix Debian bug #224732.

Obtained from [1].

[1] https://sources.debian.net/src/wmtop/0.84-12/debian/patches/fix_incorrect_memory_usage.patch/
2016-02-08 19:17:21 +05:30
Doug Torrance 1c9780cfbe wmtop: Add version 0.84 to repository.
Obtained from [1].

[1] http://http.debian.net/debian/pool/main/w/wmtop/wmtop_0.84.orig.tar.gz
2016-02-08 19:16:31 +05:30