]> granicus.if.org Git - php/commitdiff
improve test
authorAnatol Belski <ab@php.net>
Thu, 11 Jun 2015 13:36:02 +0000 (15:36 +0200)
committerAnatol Belski <ab@php.net>
Thu, 11 Jun 2015 13:36:02 +0000 (15:36 +0200)
ext/pdo_pgsql/tests/bug69752.phpt

index 7d244ecff67047b603cf3be75bfcdd64b39713fd..6cf9a0a928310dbc5b9b13f863bbbea268542705 100644 (file)
@@ -38,7 +38,7 @@ for($i = 0; $i < $max; $i++) {
     );
     $stmt->execute($data);
     $stmt->closeCursor();
-    $usage = intval(memory_get_usage() / 1024);
+    $usage = intval(floor(memory_get_usage() / 1024));
 
     if ($first_time_usage === null) $first_time_usage = $usage;