|
@@ -27,7 +27,7 @@ uses
|
|
UBlockChain, UPoolMinerThreads, UGPUMining,
|
|
UBlockChain, UPoolMinerThreads, UGPUMining,
|
|
UPoolMining, ULog, UThread, UAccounts, UCrypto,
|
|
UPoolMining, ULog, UThread, UAccounts, UCrypto,
|
|
UConst, UTime, UNode, UNetProtocol, USha256,
|
|
UConst, UTime, UNode, UNetProtocol, USha256,
|
|
- UOpenSSL, UBaseTypes,
|
|
|
|
|
|
+ UOpenSSL, UBaseTypes, UCommon,
|
|
DelphiCL;
|
|
DelphiCL;
|
|
|
|
|
|
type
|
|
type
|
|
@@ -218,8 +218,8 @@ var
|
|
end;
|
|
end;
|
|
if HasOption('c','cpu') then begin
|
|
if HasOption('c','cpu') then begin
|
|
c := StrToIntDef(GetOptionValue('c','cpu'),-1);
|
|
c := StrToIntDef(GetOptionValue('c','cpu'),-1);
|
|
- if (c<=0) or (c>CPUCount) then begin
|
|
|
|
- WriteLn('Invalid cpu value ',c,'. Valid values: 1..',CPUCount);
|
|
|
|
|
|
+ if (c<=0) or (c>TLogicalCPUCount.GetLogicalCPUCount()) then begin
|
|
|
|
+ WriteLn('Invalid cpu value ',c,'. Valid values: 1..',TLogicalCPUCount.GetLogicalCPUCount());
|
|
Terminate;
|
|
Terminate;
|
|
exit;
|
|
exit;
|
|
end;
|
|
end;
|