diff options
| author | Christian Schneider | 2021-11-28 13:38:05 +0100 |
|---|---|---|
| committer | Christian Schneider | 2021-11-28 13:38:05 +0100 |
| commit | 8d10ff3fd25c50b4cece4fd0942f20765322352b (patch) | |
| tree | 01e94e7f956e13e3111988a3ed05b4ed1f87c8ce | |
| parent | 403cb30bd5e261cd2847b22a0293a363cf2d1fce (diff) | |
| download | itools-8d10ff3fd25c50b4cece4fd0942f20765322352b.tar.gz itools-8d10ff3fd25c50b4cece4fd0942f20765322352b.tar.bz2 itools-8d10ff3fd25c50b4cece4fd0942f20765322352b.zip | |
Avoid Implicit conversion from float warning
| -rw-r--r-- | it_dbi.class | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |