Commit Graph

303 Commits

Author SHA1 Message Date
Pawel "l0ner" Soltys
df5d66fdbf fixed incorrect cpu usage
While (as for manual) correct size of cpu states variable sould be 64 bits,
the systctl actually return 32 bits for kern.cp_time.
2015-01-11 18:01:13 +01:00
Pawel "l0ner" Soltys
dba56f1b56 Merge branch 'l0ner' of github.com:l0ner/tmux-mem-cpu-load into l0ner 2015-01-10 18:39:45 +01:00
Pawel "l0ner" Soltys
f59b11971f *BDS port:
- split *BDS files
- add CMake confingure instructions on bsd systems
- add includes to main file
2015-01-10 18:34:37 +01:00
Pawel "l0ner" Soltys
6b8b746a0f pull initial *BDS port from Justin Crawford (see github.com/Justasic/tmux-mem-cpu-load) 2015-01-10 17:58:34 +01:00
Pawel "l0ner" Soltys
ad096cbac6 Merge branch 'l0ner' of github.com:l0ner/tmux-mem-cpu-load into l0ner 2015-01-10 17:32:45 +01:00
Pawel "l0ner" Soltys
3e743ee1c2 Hide cpu usage graph if graph_lines == 0. 2015-01-10 17:32:08 +01:00
Pawel "l0ner" Soltys
220d260673 use sysinfo() to get load avg instead of parsing /proc/ file 2015-01-10 17:27:54 +01:00
Pawel "l0ner" Soltys
e7f2dd25e8 use sysinfo() to get ram stats instead of parsing meminfo file.
Idea pulled from seculabird gihub user.
see:
880f8b1967
2015-01-09 14:52:50 +01:00
Pawel "l0ner" Soltys
b02d0000e9 pulled Joe136 solution to MemAvailable being present in /proc/meminfo
on some systems
2015-01-09 14:10:26 +01:00
Pawel "l0ner" Soltys
5001bc4fe7 added custom interval test 2015-01-08 20:04:27 +01:00
Pawel "l0ner" Soltys
c6fc061f9d instead of using istringstream to convert form strin to int use stoi() function 2015-01-08 19:53:22 +01:00
Pawel "l0ner" Soltys
aadca0d325 cleanups, fix tests to follow new arguments 2015-01-08 19:52:46 +01:00
Pawel "l0ner" Soltys
d92113644c use version generated by cmake, some vim auto reindent 2015-01-08 19:31:25 +01:00
Pawel "l0ner" Soltys
28040b61da easier to read argv parse using command line argument parser by Michael Hanke 2015-01-07 20:57:25 +01:00
Pawel "l0ner" Soltys
e7ee4279f6 increase sleep time to full sec instead of 1-0.1s 2015-01-07 14:58:47 +01:00
Pawel "l0ner" Soltys
72f1b03078 shorter DEFINES for versioning 2015-01-07 14:31:49 +01:00
Pawel "l0ner" Soltys
42c93ac397 prune BOOST detection, minor tweaks
For not Boost is not needed, uncomment relative lines when it will be.
2015-01-07 14:15:28 +01:00
Pawel "l0ner" Soltys
8e9033ee1e restore headers 2015-01-07 14:15:08 +01:00
Matt McCormick
8aab7a817d Merge pull request #11 from PeterDaveHello/patch-1
Use svg instead of png to get better image quality
2015-01-05 17:00:26 -05:00
Peter Dave Hello
ad1637f05b Use svg instead of png to get better image quality 2015-01-05 20:03:07 +08:00
Pawel "l0ner" Soltys
7a9209e243 grime removal: useless includes and code 2015-01-04 18:51:43 +01:00
Pawel "l0ner" Soltys
26e89f95fa wrap lines that exceed 80 columns 2015-01-04 17:33:03 +01:00
Pawel "l0ner" Soltys
223868f554 reindent one line 2015-01-04 17:23:39 +01:00
Pawel "l0ner" Soltys
080e1be24d use static_cast<> instead of c-like cast 2015-01-04 17:23:05 +01:00
Pawel "l0ner" Soltys
47b9f62a10 include fixes to make it compile on osx, added *~ files to gitignore 2015-01-04 17:21:20 +01:00
Matt McCormick
660481f23b Add Mark to contributors. v2.2.2 2014-05-07 23:23:41 -04:00
Matt McCormick
0c7ce142a2 Merge pull request #9 from mlp6/accomodate_MemAvailable
test/exclude line starting with MemAvailable
2014-05-07 23:17:21 -04:00
Mark Palmeri
b12dfc6f29 test/exclude line starting with MemAvailable
tested for line starting w/ 'MemAvailable' and exclude from used memory
calculation by simply decrementing the index variable by 1 and
proceeding
2014-05-06 16:00:57 -04:00
l0ner
2040736dd6 CPU usage graph generation by getGraphByPercentage function. 2014-04-19 22:36:59 +00:00
l0ner
444bf2fa1c fixed typo in graph.cc 2014-04-19 22:30:21 +00:00
l0ner
634201aa2c fixed typos in graph.{cc,h} and linux/cpu.h 2014-04-19 22:25:53 +00:00
l0ner
03040e64f2 rm cpu_percentage function proto from main source
This is useless here, since this proto is provided by
   {linux,osx}/cpu.h
2014-04-19 21:13:36 +00:00
l0ner
af8c544653 moved spark files to spark branch 2014-04-19 21:09:03 +00:00
l0ner
ea22ccd63f spark.cc fixes 2014-04-19 20:29:59 +02:00
l0ner
0857cdbfe4 Spark graph functions 2014-04-14 22:32:03 +02:00
l0ner
ccf33e2a26 Functions for generating vertical graphs 2014-04-14 21:46:32 +02:00
l0ner
b0ab6ea57a cpu.cc - fixed missing header and variable misname 2014-04-14 20:57:00 +02:00
l0ner
5e354b9221 memory.cc - fixed typos and missing headers 2014-04-14 20:55:00 +02:00
l0ner
643fef3a7c Corrections in CMakeLists.txt 2014-04-14 20:51:46 +02:00
l0ner
fed7b88ccd .gitignore add
Version generation by cmake
system type detection in cmake
Split file code for better management
2014-04-14 20:47:51 +02:00
Matt McCormick
4c9c9dde85 Change the default build type to MinSizeRel.
This changes the output size of the executable from 52K to 32K for GCC 4.6.3.
v2.2.1
2013-07-15 23:23:11 +00:00
Matt McCormick
a7200d2364 Change the default build type to MinSizeRel.
This changes the output size of the executable from 52K to 32K for GCC 4.6.3.
2013-07-15 23:23:11 +00:00
Matt McCormick
a91673be3a Improve foreground contrast with colors.
A brightwhite is needed for the white text to have enough contrast.  It also
allows for non-bright black, which also has better contrast.
2013-07-15 23:20:35 +00:00
Matt McCormick
fac8da7a0c Improve foreground contrast with colors.
A brightwhite is needed for the white text to have enough contrast.  It also
allows for non-bright black, which also has better contrast.
2013-07-15 23:20:35 +00:00
Matt McCormick
69880667e5 Add Travis icon to README. 2013-06-14 02:07:07 +00:00
Matt McCormick
c81bcc3d84 Add Travis icon to README. 2013-06-14 02:07:07 +00:00
Matt McCormick
82d6687aee Do not run ctest in Travis.
The workers apparently do not present themselves as
a full linux system.
2013-06-14 01:56:46 +00:00
Matt McCormick
c07c80b662 Do not run ctest in Travis.
The workers apparently do not present themselves as
a full linux system.
2013-06-14 01:56:46 +00:00
Matt McCormick
6c46121f4d Add .travis.yml. 2013-06-14 01:49:10 +00:00
Matt McCormick
6f00fc1daa Add .travis.yml. 2013-06-14 01:49:10 +00:00