From 94f73f9c60be62d1a3ead7beafd10f8902032f8b Mon Sep 17 00:00:00 2001 From: Mark Heynes Date: Wed, 7 Nov 2018 20:45:05 +0000 Subject: [PATCH] Bugfix: Changed profit switch to check pools file on each check, Fixed --- CHANGELOG.txt | 5 +++++ JJs_HashMonitor_mutley.ps1 | 16 +++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 7a069b3..64319af 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,3 +1,8 @@ +Version 4.4.11 +Release Date 2018-11-06 +Changes + Bugfix: Changed profit switch to check pools file on each check, Fixed + Version 4.4.11 Release Date 2018-11-06 Changes diff --git a/JJs_HashMonitor_mutley.ps1 b/JJs_HashMonitor_mutley.ps1 index 907d717..8c7b8f0 100644 --- a/JJs_HashMonitor_mutley.ps1 +++ b/JJs_HashMonitor_mutley.ps1 @@ -5,7 +5,7 @@ $startattempt = 0 Function Run-Miner { do { - $ver = '4.4.11' + $ver = '4.4.12' $debug = $false #$verbosePreferenc='Continue' $script:VerbosePreferenceDefault = 'silentlyContinue' @@ -2015,12 +2015,14 @@ Function Run-Miner { } else { if( ( $profitLiveCheckingEnabled -eq 'True' ) -and ($profitSwitching -eq 'True' ) ) { - refreshSTAK - foreach( $pool in $script:PoolsList.Keys ) { - if( $script:PoolsList.$pool.address | - sls "$( $script:ConnectedPool )" -ErrorAction SilentlyContinue ) { - #( ($script:PoolsList[ $pool ] ).address. $script:ConnectedPool ) { - Check-Profit-Stats @($pool) $script:minhashrate + if (read-Pools-File) { + refreshSTAK + foreach( $pool in $script:PoolsList.Keys ) { + if( $script:PoolsList.$pool.address | + sls "$( $script:ConnectedPool )" -ErrorAction SilentlyContinue ) { + #( ($script:PoolsList[ $pool ] ).address. $script:ConnectedPool ) { + Check-Profit-Stats @($pool) $script:minhashrate + } } }