aboutsummaryrefslogtreecommitdiff
path: root/cmd/bolt/pages.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/bolt/pages.go')
-rw-r--r--cmd/bolt/pages.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/bolt/pages.go b/cmd/bolt/pages.go
index 2b55c69..ab2b67d 100644
--- a/cmd/bolt/pages.go
+++ b/cmd/bolt/pages.go
@@ -39,7 +39,10 @@ func Pages(path string) {
overflow = strconv.Itoa(p.OverflowCount)
}
printf("%-8d %-10s %-6d %-6s\n", p.ID, p.Type, p.Count, overflow)
- id += 1 + p.OverflowCount
+ id += 1
+ if p.Type != "free" {
+ id += p.OverflowCount
+ }
}
return nil
})