From a93902fe70ea19f9dd3919bae19467677d0d8bf3 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 5 May 2022 15:31:47 +0200 Subject: millisecond logging is precise enough --- it_dbi.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_dbi.class b/it_dbi.class index ae77486..9603105 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -589,7 +589,7 @@ function query($query, $p = array()) if ($writing && $this->_p['throttle_writes']) { - it::log('debug', 'dbi-throttle', 1000000 * (gettimeofday(true) - $start) * $this->_p['throttle_writes']); + it::log('debug', 'dbi-throttle', round(1000000 * (gettimeofday(true) - $start) * $this->_p['throttle_writes'])); usleep(round(1000000 * (gettimeofday(true) - $start) * $this->_p['throttle_writes'])); } -- cgit v1.2.3