🐛 Account for file ids > 9
This commit is contained in:
parent
a495a2ef1a
commit
495d50ba10
7 changed files with 40 additions and 37 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue