Skip to content

Commit

Permalink
chore: add progress
Browse files Browse the repository at this point in the history
  • Loading branch information
orisano committed Sep 13, 2019
1 parent a3feeb7 commit bca2e47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func main() {
if _, err := f.Seek(int64(wr.offset), 0); err != nil {
log.Fatalf("failed to seek file: %v", err)
}
verbosefln("writing... %v", wr.offset)
verbosefln("writing... (%d/%d): %v", i+1, blocks, wr.offset)
if _, err := io.Copy(f, wr.buf); err != nil {
log.Fatalf("failed to write file: %v", err)
}
Expand Down Expand Up @@ -169,4 +169,4 @@ func isTemporary(err error) bool {
}
te, ok := err.(temporary)
return ok && te.Temporary()
}
}

0 comments on commit bca2e47

Please sign in to comment.