dot

packages and services management
Log | Files | Refs | README

commit 19ee134feb176b3ee41198178d27d70dbe6a4081
parent d989bd130395d79ec7a4ba369a47cdfededcdfd1
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Thu, 27 Jul 2017 13:46:55 +0200

bin/{plot,monitor}: small fixes

Diffstat:
Mbin/monitor | 4----
Mbin/plot | 2+-
2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/bin/monitor b/bin/monitor @@ -21,11 +21,7 @@ case "$(uname)" in esac [ $# = 0 ] && while : -<<<<<<< HEAD -do vmstat $((1)) 2 | -======= do vmstat $((60 * 15)) 2 | ->>>>>>> b1415c2967b695743975af511078db77f1e9019f awk -v mem="$mem" -v cpu="$cpu" -v bi="$bi" -v bo="$bo" ' BEGIN { diff --git a/bin/plot b/bin/plot @@ -24,7 +24,7 @@ BEGIN { stepy = maxy / height # draw the grid - margin = (length(maxy) + 3 < 15) ? 15 : length(maxy) + 3 + margin = (length(maxy) < 15) ? 15 : length(maxy) float = (stepy < 1) for (y = height - height % 2; y >= 0; y -= 2) { if (num = !num) {