mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-11-26 19:50:36 +00:00
this should reduce number of requests for full run
This commit is contained in:
parent
aa929ac9bc
commit
c851b694af
@ -44,7 +44,7 @@ function Request-Page($num)
|
|||||||
function Get-TotalPageCount($start)
|
function Get-TotalPageCount($start)
|
||||||
{
|
{
|
||||||
$min = $start
|
$min = $start
|
||||||
$max = $start + 1000
|
$max = $start + 5000
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
$html = Request-Page $max
|
$html = Request-Page $max
|
||||||
|
@ -35,7 +35,7 @@ function Request-Page($num)
|
|||||||
function Get-TotalPageCount($start)
|
function Get-TotalPageCount($start)
|
||||||
{
|
{
|
||||||
$min = $start
|
$min = $start
|
||||||
$max = $start + 1000
|
$max = $start + 3000
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
$response = Request-Page $max
|
$response = Request-Page $max
|
||||||
|
Loading…
Reference in New Issue
Block a user