mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 02:49:02 -04:00
Print the time needed for state verification
This commit is contained in:
parent
28f66faa1f
commit
f0e7170009
1 changed files with 6 additions and 0 deletions
|
|
@ -3845,10 +3845,14 @@ struct state_verify_thread_context {
|
|||
static void* state_verify_thread(void* arg)
|
||||
{
|
||||
struct state_verify_thread_context* context = arg;
|
||||
struct snapraid_content* content = context->content;
|
||||
STREAM* f = context->f;
|
||||
unsigned char buf[4];
|
||||
uint32_t crc_stored;
|
||||
uint32_t crc_computed;
|
||||
uint64_t start;
|
||||
|
||||
start = tick_ms();
|
||||
|
||||
if (sdeplete(f, buf) != 0) {
|
||||
/* LCOV_EXCL_START */
|
||||
|
|
@ -3880,6 +3884,8 @@ static void* state_verify_thread(void* arg)
|
|||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
|
||||
msg_progress("Verified %s in %" PRIu64 " seconds\n", content->content, (tick_ms() - start) / 1000);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue