1
0
Fork 1
mirror of https://github.com/vbatts/tar-split.git synced 2024-11-15 04:58:36 +00:00

main.go: adjust displayed numbers and readings

remove post, and add EOF padding

Fixes #3
This commit is contained in:
Vincent Batts 2015-03-10 11:19:00 -04:00
parent 5d32b4003b
commit 5c79f14ea5

View file

@ -51,6 +51,8 @@ func main() {
post := tr.RawBytes() post := tr.RawBytes()
output.Write(post) output.Write(post)
sum += int64(len(post)) sum += int64(len(post))
fmt.Printf("EOF padding: %d\n", len(post))
break break
} }
@ -65,12 +67,7 @@ func main() {
} }
sum += i sum += i
// I've never seen this be populated fmt.Println(hdr.Name, "pre:", len(pre), "read:", i)
post := tr.RawBytes()
output.Write(post)
sum += int64(len(post))
fmt.Println(hdr.Name, "pre:", len(pre), "read:", i, "post:", len(post))
} }
// it is allowable, and not uncommon that there is further padding on the // it is allowable, and not uncommon that there is further padding on the