r4292 - branches/2.0/varnish-cache/bin/varnishtop
tfheen at projects.linpro.no
tfheen at projects.linpro.no
Thu Oct 8 13:44:18 CEST 2009
Author: tfheen
Date: 2009-10-08 13:44:18 +0200 (Thu, 08 Oct 2009)
New Revision: 4292
Modified:
branches/2.0/varnish-cache/bin/varnishtop/varnishtop.c
Log:
Merge r4130: Fix once mode in varnishtop
-1 mode in varnishtop was broken with the variable length shmlog
fields. Fix this.
Fixes #514
Modified: branches/2.0/varnish-cache/bin/varnishtop/varnishtop.c
===================================================================
--- branches/2.0/varnish-cache/bin/varnishtop/varnishtop.c 2009-10-08 11:39:00 UTC (rev 4291)
+++ branches/2.0/varnish-cache/bin/varnishtop/varnishtop.c 2009-10-08 11:44:18 UTC (rev 4292)
@@ -267,8 +267,8 @@
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);
}
}
More information about the varnish-commit
mailing list