summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_dbi.class')
-rw-r--r--it_dbi.class2
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));