mirror of
https://github.com/upa/mscp.git
synced 2026-02-13 16:44:43 +08:00
add progress bar
This commit is contained in:
@@ -488,7 +488,6 @@ int chunk_prepare(struct chunk *c, sftp_session sftp)
|
||||
goto out;
|
||||
}
|
||||
f->state = FILE_STATE_OPENED;
|
||||
pr("copy start: %s\n", f->path);
|
||||
}
|
||||
|
||||
out:
|
||||
@@ -724,10 +723,8 @@ int chunk_copy(struct chunk *c, sftp_session sftp, size_t buf_sz, size_t *counte
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
if (refcnt_dec(&f->refcnt) == 0) {
|
||||
if (refcnt_dec(&f->refcnt) == 0)
|
||||
f->state = FILE_STATE_DONE;
|
||||
pr("copy done: %s\n", f->path);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user