Updated
This commit is contained in:
parent
36aaddf85e
commit
72ecce97a9
|
@ -37,7 +37,7 @@ namespace EonaCat.DnsTester
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_useCustomDnsServers && (!chkDns1.Checked || chkDns2.Checked))
|
if (_useCustomDnsServers && (!chkDns1.Checked && !chkDns2.Checked))
|
||||||
{
|
{
|
||||||
MessageBox.Show("Please enable DNS 1 or 2 before using custom Dns");
|
MessageBox.Show("Please enable DNS 1 or 2 before using custom Dns");
|
||||||
return;
|
return;
|
||||||
|
@ -50,6 +50,11 @@ namespace EonaCat.DnsTester
|
||||||
int numThreads = (int)numericUpDown2.Value; // number of concurrent threads to use
|
int numThreads = (int)numericUpDown2.Value; // number of concurrent threads to use
|
||||||
int maxUrls = (int)numericUpDown1.Value; // maximum number of unique URLs to retrieve
|
int maxUrls = (int)numericUpDown1.Value; // maximum number of unique URLs to retrieve
|
||||||
int numUrlsPerThread = maxUrls / numThreads;
|
int numUrlsPerThread = maxUrls / numThreads;
|
||||||
|
if (numUrlsPerThread == 0)
|
||||||
|
{
|
||||||
|
numUrlsPerThread = maxUrls;
|
||||||
|
numThreads = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
urls = await UrlHelper.RetrieveUrls(numThreads, numUrlsPerThread);
|
urls = await UrlHelper.RetrieveUrls(numThreads, numUrlsPerThread);
|
||||||
|
|
Loading…
Reference in New Issue