From 4075577340e6b34b8c9e55f123962a0042c70491 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Sat, 4 Jun 2016 11:21:21 +0200 Subject: [PATCH] Do not show hardware manager in final status display in case status is EXHAUSTED, CRACKED, ABORTED OR QUIT -- it could be confusing for users to see an utilization of 0% at this point --- src/hashcat.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/hashcat.c b/src/hashcat.c index 14e2170..3e4349e 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -1537,6 +1537,12 @@ void status_display () } #ifdef HAVE_HWMON + + if (data.devices_status == STATUS_EXHAUSTED) return; + if (data.devices_status == STATUS_CRACKED) return; + if (data.devices_status == STATUS_ABORTED) return; + if (data.devices_status == STATUS_QUIT) return; + if (data.gpu_temp_disable == 0) { hc_thread_mutex_lock (mux_adl); @@ -1620,6 +1626,7 @@ void status_display () hc_thread_mutex_unlock (mux_adl); } + #endif // HAVE_HWMON } -- 2.25.1