From 5c79f14ea5d36ba6f38dec5f5cc163fa54dbaa1e Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Tue, 10 Mar 2015 11:19:00 -0400 Subject: [PATCH] main.go: adjust displayed numbers and readings remove post, and add EOF padding Fixes #3 --- main.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index 714ca76..36bdb40 100644 --- a/main.go +++ b/main.go @@ -51,6 +51,8 @@ func main() { post := tr.RawBytes() output.Write(post) sum += int64(len(post)) + + fmt.Printf("EOF padding: %d\n", len(post)) break } @@ -65,12 +67,7 @@ func main() { } sum += i - // I've never seen this be populated - post := tr.RawBytes() - output.Write(post) - sum += int64(len(post)) - - fmt.Println(hdr.Name, "pre:", len(pre), "read:", i, "post:", len(post)) + fmt.Println(hdr.Name, "pre:", len(pre), "read:", i) } // it is allowable, and not uncommon that there is further padding on the