[master] 95793d1 draw a y axis scale

Nils Goroll nils.goroll at uplex.de
Mon Jul 25 15:14:11 CEST 2016


commit 95793d1061f71d70d1934c8bc18a260f0eec9082
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Sat Jul 23 18:58:50 2016 +0200

    draw a y axis scale

diff --git a/bin/varnishhist/varnishhist.c b/bin/varnishhist/varnishhist.c
index 794f86d..0efc7d3 100644
--- a/bin/varnishhist/varnishhist.c
+++ b/bin/varnishhist/varnishhist.c
@@ -220,6 +220,9 @@ update(void)
 
 	mvprintw(0, 0, "1:%d, n = %d", scale, nhist);
 
+	for (j = 2; j < LINES - 3; j+=5)
+		mvprintw(j, 0, "%d_", (LINES - 3 - j) * scale);
+
 	/* show them */
 	for (i = 0; i < n; ++i) {
 		for (j = 0; j < bm[i] / scale; ++j)



More information about the varnish-commit mailing list