[4.1] a63e2b0 draw a y axis scale
PÃ¥l Hermunn Johansen
hermunn at varnish-software.com
Fri Sep 9 13:01:03 CEST 2016
commit a63e2b095837823bb150d83a041a8d4bafd655cf
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 8d0eeee..56dd246 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