From 8d10ff3fd25c50b4cece4fd0942f20765322352b Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Sun, 28 Nov 2021 13:38:05 +0100 Subject: Avoid Implicit conversion from float warning --- it_dbi.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_dbi.class b/it_dbi.class index 8696ead..240f6af 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -590,7 +590,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']); - usleep(1000000 * (gettimeofday(true) - $start) * $this->_p['throttle_writes']); + usleep(round(1000000 * (gettimeofday(true) - $start) * $this->_p['throttle_writes'])); } $msec = round(1000 * (gettimeofday(true) - $start)); -- cgit v1.2.3