1
0
Fork 1
mirror of https://github.com/vbatts/tar-split.git synced 2024-12-26 07:16:32 +00:00

main.go: show remainder count

This commit is contained in:
Vincent Batts 2015-02-24 15:21:05 -05:00
parent cefcbc6fe3
commit a4fa9207cd

View file

@ -65,6 +65,7 @@ func main() {
}
sum += i
// I've never seen this be populated
post := tr.RawBytes()
output.Write(post)
sum += int64(len(post))
@ -80,6 +81,7 @@ func main() {
}
output.Write(remainder)
sum += int64(len(remainder))
fmt.Printf("Remainder: %d\n", len(remainder))
if size != sum {
fmt.Printf("Size: %d; Sum: %d; Diff: %d\n", size, sum, size-sum)