Matt McCormick
f375fc7b72
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
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
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
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
7261b34ace
Don't use namespace std. It makes things too confusing.
2013-04-15 11:33:28 -07: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
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)
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