[6.0] 62a778d90 Fix the Y-axis ticks.

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Thu Aug 16 08:53:09 UTC 2018


commit 62a778d90495aebd0471ea2214fa26ca43b984dd
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Jun 7 06:52:07 2018 +0000

    Fix the Y-axis ticks.

diff --git a/bin/varnishhist/varnishhist.c b/bin/varnishhist/varnishhist.c
index 50e435679..88ab59e8a 100644
--- a/bin/varnishhist/varnishhist.c
+++ b/bin/varnishhist/varnishhist.c
@@ -187,8 +187,8 @@ update(void)
 		mvprintw(0, 0, "1:%u, n = %u, d = %g",
 		    scale, nhist, 1e-3 * ms_delay);
 
-	for (j = 2; j < LINES - 3; j += 5)
-		mvprintw(j, 0, "%u_", ((LINES - 3) - j) * scale);
+	for (j = 5; j < LINES - 2; j += 5)
+		mvprintw((LINES - 2) - j, 0, "%u_", j * scale);
 
 	/* show them */
 	for (i = 0; i < n; ++i) {
diff --git a/bin/varnishtest/tests/u00009.vtc b/bin/varnishtest/tests/u00009.vtc
index 90b7a3dd6..77270fe92 100644
--- a/bin/varnishtest/tests/u00009.vtc
+++ b/bin/varnishtest/tests/u00009.vtc
@@ -20,4 +20,14 @@ client c1 {
 
 process p1 -expect-text 22 0 {#}
 
+process p1 -expect-text 3 1 {20_}
+
+process p1 -screen_dump 
+
+process p1 -winsz 23 80
+
+delay 1.5
+
+process p1 -expect-text 2 1 {20_}
+
 process p1 -screen_dump -write {q} -wait


More information about the varnish-commit mailing list