mirror of
https://gitea.invidious.io/iv-org/instances-api.git
synced 2024-08-15 00:53:15 +00:00
fix instance health fetching
This commit is contained in:
parent
4d3c2025cc
commit
a34614d815
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ spawn do
|
|||
monitors += response["psp"]["monitors"].as_a
|
||||
page += 1
|
||||
|
||||
break if response["psp"]["perPage"].as_i * page > response["psp"]["totalMonitors"].as_i
|
||||
break if response["psp"]["perPage"].as_i * (page - 1) + 1 > response["psp"]["totalMonitors"].as_i
|
||||
rescue ex
|
||||
error_message = response.try &.as?(String).try &.["errorStats"]?
|
||||
error_message ||= ex.message
|
||||
|
|
Loading…
Reference in a new issue