Commit 5c35213a authored by Tollef Fog Heen's avatar Tollef Fog Heen

Fix once mode in varnishtop

-1 mode in varnishtop was broken with the variable length shmlog
fields.  Fix this.

Fixes #514

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4130 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent e76fa4fc
......@@ -268,8 +268,8 @@ dump(void)
VTAILQ_FOREACH_SAFE(tp, &top_head, list, tp2) {
if (tp->count <= 1.0)
break;
len = tp->rec[1];
printf("%9.2f %*.*s\n", tp->count, len, len, tp->rec + 4);
len = SHMLOG_LEN(tp->rec);
printf("%9.2f %*.*s\n", tp->count, len, len, tp->rec + SHMLOG_DATA);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment