🐛 Account for file ids > 9

This commit is contained in:
Dan Jones 2024-12-09 14:34:01 -06:00
commit 495d50ba10
7 changed files with 40 additions and 37 deletions

View file

@ -29,6 +29,7 @@ func main() {
blocks, err := defrag.Blocks(input)
handleErr(err)
err = defrag.Defrag(blocks)
handleErr(err)
@ -36,5 +37,11 @@ func main() {
fmt.Printf("%s\n", input)
fmt.Println("Got this")
fmt.Printf("%s\n", blocks)
fmt.Printf("%v\n", blocks)
sum, err := defrag.Checksum(blocks)
handleErr(err)
fmt.Println("Checksum:")
fmt.Printf("%d\n", sum)
}