Skip to content
Snippets Groups Projects
Commit f1df3e45 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

microtime(true) is a flot with a decimal for microseconds

parent 20c71670
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ class Net_EPP_Protocol { ...@@ -54,7 +54,7 @@ class Net_EPP_Protocol {
// Update metadata // Update metadata
$info = stream_get_meta_data($socket); $info = stream_get_meta_data($socket);
$time_end = microtime(true); $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'); throw new exception('Timeout while reading from EPP Server');
} }
} }
...@@ -93,7 +93,7 @@ class Net_EPP_Protocol { ...@@ -93,7 +93,7 @@ class Net_EPP_Protocol {
// Update metadata // Update metadata
$info = stream_get_meta_data($socket); $info = stream_get_meta_data($socket);
$time_end = microtime(true); $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'); throw new exception('Timeout while writing to EPP Server');
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment