monitower

nimble and trivial monitoring suite
Log | Files | Refs

commit 00d39edec26c1cacd8b003687c77ec47e39b67f5
parent 192b6422061ba39d9afa887ef8d56e8e5ecfd745
Author: Josuah Demangeon <me@josuah.net>
Date:   Thu, 24 Sep 2020 08:21:42 +0200

shorten monitower-show default STEP

Diffstat:
Mbin/monitower-show | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/bin/monitower-show b/bin/monitower-show @@ -22,8 +22,6 @@ function value_init(ctx) function value_add(time, value, ctx) { - #print "time="time, "step="STEP, "start="START, "progress="ctx["progress"], "value="value, "state="ctx["state"] - if (time > ctx["progress"]) flush_values(ctx) @@ -52,7 +50,7 @@ BEGIN { cmd | getline NOW close(cmd) - STEP = ENVIRON["STEP"] ? ENVIRON["STEP"] : 600 + STEP = ENVIRON["STEP"] ? ENVIRON["STEP"] : 60 COUNT = ENVIRON["COUNT"] ? ENVIRON["COUNT"] : 80 NOW = NOW - NOW % STEP + STEP START = NOW - STEP * COUNT