dot

packages and services management
Log | Files | Refs | README

commit b2dd4c2ff1a77773afc3e604d137434ba516965c
parent a54e64d33679c58734aec4aa1e0615f3e7bf2684
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Sat, 29 Jul 2017 00:37:19 +0200

Merge branch 'master' of http://github.com/josuah/etc

Diffstat:
Mmonitor/bin/monitor | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/monitor/bin/monitor b/monitor/bin/monitor @@ -20,7 +20,7 @@ case "$(uname)" in (Solaris) mem=free cpu=id bi='' bo='' b="$disks" ;; esac -vmstat "$1" 2 | +vmstat "${1:-$((60 * 15))}" 2 | awk -v mem="$mem" -v cpu="$cpu" -v bi="$bi" -v bo="$bo" ' BEGIN { @@ -89,4 +89,4 @@ o() { printf '\n\n[ %s ]\n\n' "$*"; } } > "$VAR/stat/graph" -exec "$0" +exec "$0" "$@"