mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-27 02:18:21 +00:00
Get rid of runtime variable in data. context
This commit is contained in:
parent
21d852b194
commit
88f97f2cca
@ -971,7 +971,6 @@ typedef struct
|
|||||||
u32 attack_kern;
|
u32 attack_kern;
|
||||||
u32 quiet;
|
u32 quiet;
|
||||||
u32 force;
|
u32 force;
|
||||||
u32 runtime;
|
|
||||||
u32 hex_charset;
|
u32 hex_charset;
|
||||||
u32 hex_salt;
|
u32 hex_salt;
|
||||||
u32 hex_wordlist;
|
u32 hex_wordlist;
|
||||||
|
@ -278,7 +278,6 @@ int main (int argc, char **argv)
|
|||||||
data.logfile_disable = user_options->logfile_disable;
|
data.logfile_disable = user_options->logfile_disable;
|
||||||
data.powertune_enable = user_options->powertune_enable;
|
data.powertune_enable = user_options->powertune_enable;
|
||||||
data.quiet = user_options->quiet;
|
data.quiet = user_options->quiet;
|
||||||
data.runtime = user_options->runtime;
|
|
||||||
data.scrypt_tmto = user_options->scrypt_tmto;
|
data.scrypt_tmto = user_options->scrypt_tmto;
|
||||||
data.segment_size = user_options->segment_size;
|
data.segment_size = user_options->segment_size;
|
||||||
data.truecrypt_keyfiles = user_options->truecrypt_keyfiles;
|
data.truecrypt_keyfiles = user_options->truecrypt_keyfiles;
|
||||||
|
@ -301,7 +301,7 @@ void *thread_monitor (void *p)
|
|||||||
|
|
||||||
time (&runtime_cur);
|
time (&runtime_cur);
|
||||||
|
|
||||||
int runtime_left = data.proc_start + data.runtime + data.prepare_time + (ms_paused / 1000) - runtime_cur;
|
int runtime_left = data.proc_start + user_options->runtime + data.prepare_time + (ms_paused / 1000) - runtime_cur;
|
||||||
|
|
||||||
if (runtime_left <= 0)
|
if (runtime_left <= 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user