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:
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()
|
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
|
||||||
|
|
Loading…
Reference in a new issue