Commit graph

397 commits

Author SHA1 Message Date
Matt McCormick 98a53bc262 Add tests. 2013-06-09 22:50:03 -04:00
Matt McCormick e5f3dc1503 Add tests. 2013-06-09 22:50:03 -04:00
Matt McCormick c5e080218c Output error on status interval < 1. 2013-06-09 22:24:28 -04:00
Matt McCormick beea1a7cae Output error on status interval < 1. 2013-06-09 22:24:28 -04:00
Matt McCormick f375fc7b72 Use EXIT_SUCCESS/EXIT_FAILURE. 2013-06-09 21:01:32 -04:00
Matt McCormick 365502dbf8 Use EXIT_SUCCESS/EXIT_FAILURE. 2013-06-09 21:01:32 -04:00
Matt McCormick 1b012b0f46 Output error on graph_lines < 1. Issue #3. 2013-06-09 20:58:47 -04:00
Matt McCormick 1155ca7c77 Output error on graph_lines < 1. Issue #3. 2013-06-09 20:58:47 -04:00
Matt McCormick 9d072d4ec1 Merge remote-tracking branch 'Justastic/master' #1, #2, #5
Add support for Mac OSX from Justastic.  Refactors the code from Justastic so it
works with the Linux code and so it also works for the new colors support.

Still need to test on OSX.

Conflicts:
	tmux-mem-cpu-load.cpp
2013-06-09 20:49:21 -04:00
Matt McCormick 777452a83e Merge remote-tracking branch 'Justastic/master' #1, #2, #5
Add support for Mac OSX from Justastic.  Refactors the code from Justastic so it
works with the Linux code and so it also works for the new colors support.

Still need to test on OSX.

Conflicts:
	tmux-mem-cpu-load.cpp
2013-06-09 20:49:21 -04:00
Matt McCormick c13d4087b9 Merge branch 'colors'
Add support for colored output.
2013-06-05 11:55:18 -04:00
Justin Crawford 53ffd7ce10 Mac OS X support and BSD function stubs
Reorder the functions, begin OS X specific functions
Load averages and Memory usage now works on OSX (I hope the calculations are correct)
Minor edits
Finish OSX support - Fixes CPU usage
2013-05-20 20:02:13 -07:00
Justin Crawford 06ebd3e9ab Mac OS X support and BSD function stubs
Reorder the functions, begin OS X specific functions
Load averages and Memory usage now works on OSX (I hope the calculations are correct)
Minor edits
Finish OSX support - Fixes CPU usage
2013-05-20 20:02:13 -07:00
Matt McCormick 7186e5dbd0 Add instructions for color support in the README. 2013-05-03 14:28:12 -04:00
Matt McCormick b2f26bab3f Add support for colors.
Colors are added for terminals that have 256 color support when the
--colors flag is enabled.  The background colors are varied with different color
maps derived from their matplotlib versions.  The foreground color is a
contrasting black or white.
2013-04-30 06:38:39 -04:00
Matt McCormick 816a26bab5 No using namespace std.
Bad form, as Hook would say.
2013-04-24 22:13:50 -04:00
Justin Crawford dd3cb1e27d Fix the formatting to use tabs instead of spaces, easier to read this way. 2013-04-15 11:35:38 -07:00
Justin Crawford c14c56c7ef Fix the formatting to use tabs instead of spaces, easier to read this way. 2013-04-15 11:35:38 -07:00
Justin Crawford 7261b34ace Don't use namespace std. It makes things too confusing. 2013-04-15 11:33:28 -07:00
Justin Crawford 86bdac97f8 Don't use namespace std. It makes things too confusing. 2013-04-15 11:33:28 -07:00
Matt McCormick 2dc1716dd3 Add note in README that OSX is not supported. 2013-04-04 19:52:38 -04:00
Matt McCormick b00f53193b Add note in README that OSX is not supported. 2013-04-04 19:52:38 -04:00
Matt McCormick 91034d3d29 Add CMake error on OSX.
It is not currently supported.
2013-04-04 19:50:16 -04:00
Matt McCormick ec28a5615b Add CMake error on OSX.
It is not currently supported.
2013-04-04 19:50:16 -04:00
Matt McCormick c7c0063916 Merge pull request #4 from krieiter/patch-1
Update README.rst
2013-03-20 19:43:40 -07:00
Matt McCormick fd38877476 Merge pull request #4 from krieiter/patch-1
Update README.rst
2013-03-20 19:43:40 -07:00
krieiter 39c97db2b0 Update README.rst
I'm not actually sure whether it's typo or not. Feel free to reject this change.
2013-03-18 16:27:13 +09:00
krieiter 2fd8b67424 Update README.rst
I'm not actually sure whether it's typo or not. Feel free to reject this change.
2013-03-18 16:27:13 +09:00
Matt McCormick e1754b0d60 Parse a --colors flag. 2013-02-21 00:08:14 -05:00
Matt McCormick d28fb387ca Improve indentation style consistency. 2013-02-20 23:15:20 -05:00
Matt McCormick c40ab82bfa Merge branch 'license' 2012-11-25 17:20:58 +00:00
Matt McCormick f9f1342280 Add Apache-2.0 license.
Per request of Alex Alexander.
2012-11-25 17:20:31 +00:00
Matt McCormick (thewtex) b1109a31d9 Make number of bar graph lines optional.
The default is still 10.  If you have a machine with many cores, this can be
used to show how many cores are active.
2010-08-01 10:17:42 -05:00
Matt McCormick (thewtex) 457834ee1b Change annotation letters to numbers.
Because Github's ReST parser mangles them.
2010-02-25 11:20:27 -06:00
Matt McCormick (thewtex) 0926ee84f8 Update README for use with tmux. 2010-02-25 11:13:59 -06:00
Matt McCormick (thewtex) dbd3f8e3c7 Make cpu usage timing interval user option.
Also convert sleep to microseconds so the delay time can always be less than the
tmux status bar update interval.
2010-02-25 08:54:18 -06:00
Matt McCormick (thewtex) 00a85129fa Remove some parameter subscriptions to save space. 2010-02-25 00:03:02 -06:00
Matt McCormick (thewtex) d83d5e302d Add load average. 2010-02-24 23:49:36 -06:00
Matt McCormick (thewtex) 88938b24c3 Calculate used memory. 2010-02-24 23:37:21 -06:00
Matt McCormick (thewtex) edc15497e2 Total memory available. 2010-02-24 19:02:55 -06:00
Matt McCormick (thewtex) 83945d1a19 Move cpu usage from screen setup to tmux setup. 2010-02-24 18:49:10 -06:00
Matt McCormick (thewtex) dc5fe29f1d rename screen-cpu-mem to tmux-mem-cpu-load 2010-02-24 18:04:41 -06:00
Matt McCormick (thewtex) b0ef6972bd use absolute paths for free + awk
causes conflicts when cwrapper installed
2009-09-17 09:36:11 -05:00
Matt McCormick (thewtex) 8de900a58d hardstatus spelling error fix 2009-09-11 01:19:56 -05:00
Matt McCormick (thewtex) a3ba98dec8 add README.rst 2009-09-11 01:13:33 -05:00
Matt McCormick (thewtex) 011e3abe69 add cmake configuration 2009-09-09 01:51:47 -05:00
Matt McCormick (thewtex) 627dab275c start with the scripts 2009-09-09 01:28:04 -05:00