Camille TJHOA
7b70827758
Add sar
2016-10-10 20:46:26 +02:00
Camille TJHOA
6281a72355
Fix #14
2016-10-10 20:45:58 +02:00
Camille TJHOA
4365837368
Fix #13 + Remove magic numbers
2016-07-03 18:01:50 +02:00
Camille TJHOA
21bb555e6f
Merge pull request #12 from daenney/patch-1
...
cpu_percentage: Fix multiple HDD on OS X
2016-03-08 19:26:58 +01:00
Daniele Sluijters
1120ecbd08
cpu_percentage: Cut right field from iostat on OS X
...
Closes #11 .
2016-03-08 19:22:46 +01:00
Camille TJHOA
585c254b15
Fix #10
2016-03-03 21:50:36 +01:00
Camille TJHOA
d5681daf91
Fix awk printf and BSD
2016-02-24 20:42:26 +01:00
Camille TJHOA
a67251af94
Improve accuracy and add sar support
2016-02-24 14:15:15 +01:00
Camille TJHOA
1eb2fcc9f8
Fix #8
2016-01-31 16:33:25 +01:00
Camille TJHOA
f44f77674d
Better iostat support
2016-01-20 00:38:13 +01:00
Camille TJHOA
dd190b1cc9
Merge pull request #7 from Wayneoween/master
...
use correct value if running on FreeBSD
2016-01-13 21:58:42 +01:00
Marius Schuller
573c98e5d9
use correct value if running on FreeBSD
...
Signed-off-by: Marius Schuller <marius.schuller@googlemail.com>
2016-01-13 20:08:15 +01:00
Camille TJHOA
c21f267a96
Update README.md
2015-08-10 23:51:06 +02:00
Camille TJHOA
157d0bb75d
Fix #6
2015-08-10 23:49:49 +02:00
ctjhoa
9ddb7bf155
Merge pull request #4 from kiririmode/always_cygwin
...
doesn't print cpu usage on MacOSX.
2015-02-07 13:01:19 +01:00
kiririmode
89d0a5982c
determines correctly whether cygwin is used or not.
2015-02-07 19:49:00 +09:00
Camille TJHOA
dfdf2ffa51
Fix variable size
2015-02-06 10:44:34 +01:00
Camille TJHOA
00d4e982f7
Add cygwin support
2015-01-29 18:37:18 +01:00
ctjhoa
a1c753d4ce
Merge pull request #2 from lglenn/use_iostats_on_mac
...
Force number of devices to 1 so as not to break the awk script.
2014-12-15 20:31:57 +01:00
Larry Glenn
145a3d2c2b
Force number of devices to 1 so as not to break the awk script.
...
The awk snippet that grabs the cpu stats assumes that there's one disk
in iostat's output. Adding -n 1 to the iostat call ensures that iostat
will only report on one disk, and the cpu stats will be in the correct
column.
2014-12-14 18:33:26 -05:00
ctjhoa
3a099ef397
Merge pull request #1 from lglenn/use_iostats_on_mac
...
Grab CPU stats from iostat on a mac
2014-12-11 16:30:35 +01:00
Larry Glenn
a3ed1dae1a
Whoops, fix formatting
2014-12-08 23:04:03 -05:00
Larry Glenn
a8fcdae801
Grab CPU stats from iostat on a mac
...
OSX doesn't have procfs, so grabbing cpu usage from /proc/stat won't
work.
Rather, if is_osx() returns true, get stats from the output of the
iostat utility.
Note that the first line of data that iostat prints is always averaged
over system uptime. You need to tell it to print two lines, averaging
over one second, and use the data in the second line.
2014-12-08 22:54:41 -05:00
Camille TJHOA
2f95c985b5
Limit decimal to 1
2014-12-07 17:58:54 +01:00
Camille TJHOA
ce1cc4a3c2
Change repo
2014-12-07 17:36:29 +01:00
Camille TJHOA
29b0a02ae0
Fix license
2014-11-30 19:05:42 +01:00
ctjhoa
9c2df43fdb
Fix repo in README
2014-11-30 17:45:57 +01:00
Camille TJHOA
c66fd296c9
Fix interpolation
2014-11-30 17:06:45 +01:00
Camille TJHOA
09ddceb8ee
First commit
2014-11-22 18:25:24 +01:00
ctjhoa
35adb54818
Initial commit
2014-11-22 17:36:20 +01:00