commit | 040613db3315aeb992208d30789807285316f3b9 | [log] [download] |
---|---|---|
author | Explorer09 <explorer09@gmail.com> | Thu Jan 21 14:06:11 2016 +0800 |
committer | Explorer09 <explorer09@gmail.com> | Thu Jan 21 14:06:11 2016 +0800 |
tree | 27e71f686be35e22c7770fef41af0de57c05773c | |
parent | d54ab24d9728e09965e7ed04fa3502a8420ba748 [diff] |
Change variable 'dot' to avoid division by reciprocal. (Cherry-picked from d56bcd8e0d8d6a177fc2e40db32fc73ea4588684, the experimental graph coloring branch) The variable 'dot' in GraphMeterMode_draw now means "maximum number of dots per value (column) in graph". The old meaning was "amount of value that is to be represented by a dot" and was always a fraction. Due to a limitation in floating point computing, if GRAPH_HEIGHT were not a power of 2, then rounding errors will occur on numbers like (1.0/3). (Currently GRAPH_HEIGHT is 4 and so no precision loss.) 'dot' was used as a divisor, and it's "division by a reciprocal". We change that to simple multiplication.
by Hisham Muhammad hisham@gobolinux.org
2004 - 2015
This is htop, an interactive process viewer. It requires ncurses. It is developed primarily on Linux, but we also have code for running under FreeBSD and Mac OS X (help and testing are wanted for these platforms!)
This software has evolved considerably over the years, and is reasonably complete, but there is always room for improvement.
This program is distributed as a standard autotools-based package. See the INSTALL file for detailed instructions, but you are probably used to the common ./configure
/make
/make install
routine.
When fetching the code from the development repository, you need to run the ./autogen.sh
script, which in turn requires autotools to be installed.
See the manual page (man htop) or the on-line help (‘F1’ or ‘h’ inside htop) for a list of supported key commands.
if not all keys work check your curses configuration.