1
0
Fork 1
mirror of https://github.com/vbatts/tar-split.git synced 2024-11-16 21:38:38 +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 sum += i
// I've never seen this be populated
post := tr.RawBytes() post := tr.RawBytes()
output.Write(post) output.Write(post)
sum += int64(len(post)) sum += int64(len(post))
@ -80,6 +81,7 @@ func main() {
} }
output.Write(remainder) output.Write(remainder)
sum += int64(len(remainder)) sum += int64(len(remainder))
fmt.Printf("Remainder: %d\n", len(remainder))
if size != sum { if size != sum {
fmt.Printf("Size: %d; Sum: %d; Diff: %d\n", size, sum, size-sum) fmt.Printf("Size: %d; Sum: %d; Diff: %d\n", size, sum, size-sum)