From f1df3e452be422b39d02de530b9b8b4befd34904 Mon Sep 17 00:00:00 2001
From: Nigel Kukard <nkukard@lbsd.net>
Date: Sat, 9 May 2015 12:31:06 +0000
Subject: [PATCH] microtime(true) is a flot with a decimal for microseconds

---
 modules/registrars/cozaepp/Net/EPP/Protocol.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/registrars/cozaepp/Net/EPP/Protocol.php b/modules/registrars/cozaepp/Net/EPP/Protocol.php
index 8c07df9..09088e9 100644
--- a/modules/registrars/cozaepp/Net/EPP/Protocol.php
+++ b/modules/registrars/cozaepp/Net/EPP/Protocol.php
@@ -54,7 +54,7 @@ class Net_EPP_Protocol {
 			// Update metadata
 			$info = stream_get_meta_data($socket);
 			$time_end = microtime(true);
-			if (($time_end - $time_start) > 10000000) {
+			if (($time_end - $time_start) > 10) {
 				throw new exception('Timeout while reading from EPP Server');
 			}
 		}
@@ -93,7 +93,7 @@ class Net_EPP_Protocol {
 			// Update metadata
 			$info = stream_get_meta_data($socket);
 			$time_end = microtime(true);
-			if (($time_end - $time_start) > 10000000) {
+			if (($time_end - $time_start) > 10) {
 				throw new exception('Timeout while writing to EPP Server');
 			}
 		}
-- 
GitLab