Fixed status view progress percentage in case -s was used
This commit is contained in:
+7
-2
@@ -94,6 +94,8 @@ static int inner2_loop (hashcat_ctx_t *hashcat_ctx)
|
||||
|
||||
rd->words_cur = 0;
|
||||
|
||||
// --restore always overrides --skip
|
||||
|
||||
user_options->skip = 0;
|
||||
}
|
||||
}
|
||||
@@ -102,8 +104,6 @@ static int inner2_loop (hashcat_ctx_t *hashcat_ctx)
|
||||
{
|
||||
status_ctx->words_off = user_options->skip;
|
||||
status_ctx->words_cur = status_ctx->words_off;
|
||||
|
||||
user_options->skip = 0;
|
||||
}
|
||||
|
||||
opencl_session_reset (hashcat_ctx);
|
||||
@@ -318,6 +318,11 @@ static int inner2_loop (hashcat_ctx_t *hashcat_ctx)
|
||||
}
|
||||
}
|
||||
|
||||
// in case the user specified a --skip parameter we can use it only for the first inner loop
|
||||
// we need to reset this
|
||||
|
||||
user_options->skip = 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user