dot

packages and services management
Log | Files | Refs | README

commit b611828f1546197116aa2cf6e203415317b12160
parent 60ceda3d091569e6b4a4a8cd58c5564dd9f8d3c9
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Wed, 26 Jul 2017 22:17:41 +0200

bin/monitor: limiting the length to 120 values

Diffstat:
Mbin/monitor | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bin/monitor b/bin/monitor @@ -69,7 +69,9 @@ do loadv="$loadv $load" diskiov="$diskiov $diskio" storv="$storv $stor" -done < "$VAR/stat/now" +done <<EOF +$(tail -n 120 "$VAR/stat/now") +EOF p() { printf '\n\n[ %s ]\n\n' "$*"; }