mirror of
https://github.com/hybula/lookingglass.git
synced 2024-09-21 05:20:06 +00:00
Some experimenting
This commit is contained in:
parent
10d9568289
commit
ee8baae426
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue