[master] 1a21c1c Fix the Y-axis ticks.
Poul-Henning Kamp
phk at FreeBSD.org
Thu Jun 7 06:53:22 UTC 2018
commit 1a21c1c2902d8bad2095ed452a6f2b0a53a6465a
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 50e4356..88ab59e 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 90b7a3d..77270fe 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