Permalink
Browse files

Add LICENSE.

  • Loading branch information...
watsonian committed Sep 4, 2012
1 parent 7b1e90d commit 0522e9013e17c6c7a32e66372e80910f78b7d4bb
Showing with 36 additions and 10 deletions.
  1. +20 −0 LICENSE
  2. +16 −10 readme.md
View
20 LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2012 Joel Watson
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -35,15 +35,17 @@ If you want to run the script in the foreground you can do so by executing it li
There are a number of variables you can adjust to suit your needs. Here are the defaults:
- CMDOUT_LOG="load.cmd.log"
- STDOUT_LOG="load.std.log"
- ERROR_LOG="load.err.log"
- MAX_INITIAL=20.00
- MAX=$MAX_INITIAL
- RUNS=0
- MAX_RUNS=12 # to get minutes: $MAX_RUNS / (60 / $SLEEP_TIME)
- SLEEP_TIME=30
- COMMAND="ps aux --sort=-pcpu"
+```shell
+CMDOUT_LOG="load.cmd.log"
+STDOUT_LOG="load.std.log"
+ERROR_LOG="load.err.log"
+MAX_INITIAL=20.00
+MAX=$MAX_INITIAL
+RUNS=0
+MAX_RUNS=12 # to get minutes: $MAX_RUNS / (60 / $SLEEP_TIME)
+SLEEP_TIME=30
+COMMAND="ps aux --sort=-pcpu"
+```
The log variables are fairly self-explanatory.
@@ -71,4 +73,8 @@ Another useful one is this one:
grep -A 100 "USER" load.cmd.log | grep -v USER | sed 's/ */ /g' | cut -f11- -d ' ' | sort | uniq -c | sort -n | tail -20
-That one will get you a list of the processes being executed the most across all process dumps.
+That one will get you a list of the processes being executed the most across all process dumps.
+
+## Copyright
+
+Copyright (c) 2012 Joel Watson. See LICENSE for details.

0 comments on commit 0522e90

Please sign in to comment.