summaryrefslogtreecommitdiff
path: root/includes/refresh.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-08-26 22:29:23 +0200
committerMinteck <contact@minteck.org>2022-08-26 22:29:23 +0200
commit09bd0164ebc020a54b944b7326dcba496fb5d82c (patch)
tree0c5e765e627ecc94e534ccb6e2bc83917d58dc4c /includes/refresh.php
parenta2df9a69dcc14cb70118cda2ded499055e7ee358 (diff)
downloadpluralconnect-09bd0164ebc020a54b944b7326dcba496fb5d82c.tar.gz
pluralconnect-09bd0164ebc020a54b944b7326dcba496fb5d82c.tar.bz2
pluralconnect-09bd0164ebc020a54b944b7326dcba496fb5d82c.zip
idk when was the last commit so I'm making a new one - Violet Dawn
Diffstat (limited to 'includes/refresh.php')
-rw-r--r--includes/refresh.php12
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;
}