diff options
Diffstat (limited to 'includes/refresh.php')
-rw-r--r-- | includes/refresh.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/includes/refresh.php b/includes/refresh.php index 83745fb..79e3b7f 100644 --- a/includes/refresh.php +++ b/includes/refresh.php @@ -25,26 +25,22 @@ function getSystem(string $id) { echo(" Base system info\n"); $currentOpStart = microtime(true); - file_put_contents("./data/$id-general.json", file_get_contents("https://api.pluralkit.me/v2/systems/$id")); - sleep(1); + file_put_contents("./data/$id-general.json", file_get_contents("https://pluralkit.equestria.dev/v2/systems/$id")); $times["system-general-$id"] = microtime(true) - $currentOpStart; echo(" System members\n"); $currentOpStart = microtime(true); - file_put_contents("./data/$id-members.json", file_get_contents("https://api.pluralkit.me/v2/systems/$id/members")); - sleep(1); + file_put_contents("./data/$id-members.json", file_get_contents("https://pluralkit.equestria.dev/v2/systems/$id/members")); $times["system-members-$id"] = microtime(true) - $currentOpStart; echo(" Fronters\n"); $currentOpStart = microtime(true); - file_put_contents("./data/$id-fronters.json", file_get_contents("https://api.pluralkit.me/v2/systems/$id/fronters")); - sleep(1); + file_put_contents("./data/$id-fronters.json", file_get_contents("https://pluralkit.equestria.dev/v2/systems/$id/fronters")); $times["system-fronters-$id"] = microtime(true) - $currentOpStart; echo(" Switches\n"); $currentOpStart = microtime(true); - file_put_contents("./data/$id-switches.json", file_get_contents("https://api.pluralkit.me/v2/systems/$id/switches")); - sleep(1); + file_put_contents("./data/$id-switches.json", file_get_contents("https://pluralkit.equestria.dev/v2/systems/$id/switches")); $times["system-switches-$id"] = microtime(true) - $currentOpStart; } |