diff options
author | Urban Müller | 2022-05-05 15:31:47 +0200 |
---|---|---|
committer | Urban Müller | 2022-05-05 15:31:47 +0200 |
commit | a93902fe70ea19f9dd3919bae19467677d0d8bf3 (patch) | |
tree | bfc0ff893e64a991a31b524f2a46fe1a8b8dbd23 /it_dbi.class | |
parent | 439af54ba6b7a654ba6ad7a3b6b93cdaa2f077d0 (diff) | |
download | itools-a93902fe70ea19f9dd3919bae19467677d0d8bf3.tar.gz itools-a93902fe70ea19f9dd3919bae19467677d0d8bf3.tar.bz2 itools-a93902fe70ea19f9dd3919bae19467677d0d8bf3.zip |
millisecond logging is precise enough
Diffstat (limited to 'it_dbi.class')
-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 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'])); } |