Some experimenting

This commit is contained in:
dqos 2023-03-25 16:06:46 +01:00
parent 10d9568289
commit ee8baae426

View file

@ -1,4 +1,5 @@
<?php <?php
declare(strict_types=1); declare(strict_types=1);
/** /**
* Hybula Looking Glass * Hybula Looking Glass
@ -412,7 +413,7 @@ class LookingGlass
{ {
$getLatency = self::getLatencyFromSs(self::detectIpAddress()); $getLatency = self::getLatencyFromSs(self::detectIpAddress());
if (isset($getLatency[0])) { if (isset($getLatency[0])) {
return (float)round($getLatency[0]['latency'], 2); return round((float)$getLatency[0]['latency'], 2);
} else { } else {
return 0.00; return 0.00;
} }