mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-22 20:42:07 +00:00
Reset PID controller history data for GPU fan speed in case user resumes from a paused session
This commit is contained in:
parent
9a3cf88887
commit
9c7b56165c
@ -21,6 +21,7 @@
|
|||||||
##
|
##
|
||||||
|
|
||||||
- Show [r]esume in prompt in pause mode only and show [p]ause in prompt in resume mode only
|
- Show [r]esume in prompt in pause mode only and show [p]ause in prompt in resume mode only
|
||||||
|
- Reset PID controller history data for GPU fan speed in case user resumes from a paused session
|
||||||
|
|
||||||
##
|
##
|
||||||
## Technical
|
## Technical
|
||||||
|
@ -127,12 +127,24 @@ static int monitor (hashcat_ctx_t *hashcat_ctx)
|
|||||||
u32 remove_left = user_options->remove_timer;
|
u32 remove_left = user_options->remove_timer;
|
||||||
u32 status_left = user_options->status_timer;
|
u32 status_left = user_options->status_timer;
|
||||||
|
|
||||||
|
u32 devices_status_old = status_ctx->devices_status;
|
||||||
|
|
||||||
while (status_ctx->shutdown_inner == false)
|
while (status_ctx->shutdown_inner == false)
|
||||||
{
|
{
|
||||||
sleep (sleep_time);
|
sleep (sleep_time);
|
||||||
|
|
||||||
if (status_ctx->devices_status == STATUS_INIT) continue;
|
if (status_ctx->devices_status == STATUS_INIT) continue;
|
||||||
|
|
||||||
|
if ((devices_status_old == STATUS_PAUSED) && (status_ctx->devices_status == STATUS_RUNNING))
|
||||||
|
{
|
||||||
|
memset (fan_speed_chgd, 0, sizeof (fan_speed_chgd));
|
||||||
|
|
||||||
|
memset (temp_diff_old, 0, sizeof (temp_diff_old));
|
||||||
|
memset (temp_diff_sum, 0, sizeof (temp_diff_sum));
|
||||||
|
}
|
||||||
|
|
||||||
|
devices_status_old = status_ctx->devices_status;
|
||||||
|
|
||||||
if (hwmon_check == true)
|
if (hwmon_check == true)
|
||||||
{
|
{
|
||||||
hc_thread_mutex_lock (status_ctx->mux_hwmon);
|
hc_thread_mutex_lock (status_ctx->mux_hwmon);
|
||||||
|
Loading…
Reference in New Issue
Block a user