From 599aa24ec08c80cb80ad7734cbce97bb7e6ad16a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Sun, 8 Dec 2024 16:34:20 +0100 Subject: [PATCH] fix: use RDAP request start time as timestamp --- src/Service/InfluxdbService.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Service/InfluxdbService.php b/src/Service/InfluxdbService.php index 462837e..c702d96 100644 --- a/src/Service/InfluxdbService.php +++ b/src/Service/InfluxdbService.php @@ -42,15 +42,17 @@ readonly class InfluxdbService 'tld' => $rdapServer->getTld()->getTld(), 'rdap_server' => $rdapServer->getUrl(), 'primary_ip' => $info['primary_ip'], - ], [ 'http_code' => $info['http_code'], + ], [ 'total_time_us' => $info['total_time_us'], 'namelookup_time_us' => $info['namelookup_time_us'], 'connect_time_us' => $info['connect_time_us'], 'starttransfer_time_us' => $info['starttransfer_time_us'], 'size_download' => $info['size_download'], 'ssl_verify_result' => $info['ssl_verify_result'], - ])); + ], floor($info['start_time'] * 3), + WritePrecision::MS) + ); } public function addDomainOrderPoint(Connector $connector, Domain $domain, bool $success): void