From 88f97f2ccae8f54ba2957687771fc21a42a2ca80 Mon Sep 17 00:00:00 2001 From: jsteube Date: Thu, 22 Sep 2016 15:08:28 +0200 Subject: [PATCH] Get rid of runtime variable in data. context --- include/types.h | 1 - src/hashcat.c | 1 - src/monitor.c | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/include/types.h b/include/types.h index c01f7997d..579c19b7d 100644 --- a/include/types.h +++ b/include/types.h @@ -971,7 +971,6 @@ typedef struct u32 attack_kern; u32 quiet; u32 force; - u32 runtime; u32 hex_charset; u32 hex_salt; u32 hex_wordlist; diff --git a/src/hashcat.c b/src/hashcat.c index d304217b0..22230b5dd 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -278,7 +278,6 @@ int main (int argc, char **argv) data.logfile_disable = user_options->logfile_disable; data.powertune_enable = user_options->powertune_enable; data.quiet = user_options->quiet; - data.runtime = user_options->runtime; data.scrypt_tmto = user_options->scrypt_tmto; data.segment_size = user_options->segment_size; data.truecrypt_keyfiles = user_options->truecrypt_keyfiles; diff --git a/src/monitor.c b/src/monitor.c index 77862a5d2..816d7c7af 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -301,7 +301,7 @@ void *thread_monitor (void *p) 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) {