forked from mirrors/tar-split
main.go: adjust displayed numbers and readings
remove post, and add EOF padding Fixes #3
This commit is contained in:
parent
5d32b4003b
commit
5c79f14ea5
1 changed files with 3 additions and 6 deletions
9
main.go
9
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
|
||||
|
|
Loading…
Reference in a new issue