From a2d782d59c5513569ce51555128f2a942fc2143e Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 27 Feb 2018 01:57:40 +0100 Subject: [PATCH] Moved rtime out of the if/else block rtime in both the if and else block is unnecessary. Moving it out the if/else block has the same result. --- src/psm/Util/Server/Updater/StatusUpdater.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/psm/Util/Server/Updater/StatusUpdater.php b/src/psm/Util/Server/Updater/StatusUpdater.php index fc7af6e5..ec7377f6 100644 --- a/src/psm/Util/Server/Updater/StatusUpdater.php +++ b/src/psm/Util/Server/Updater/StatusUpdater.php @@ -157,12 +157,11 @@ class StatusUpdater { socket_send($socket, $package, strLen($package), 0); if (socket_read($socket, 255)) { - $this->rtime = microtime(true) - $starttime; $status = true; } else { - $this->rtime = microtime(true) - $starttime; $status = false; } + $this->rtime = microtime(true) - $starttime; socket_close($socket); // check if server is available and rerun if asked.