count maybe 0

This commit is contained in:
Lion 2022-06-24 11:52:06 +08:00
parent fa4c983710
commit 3e8d616a2a
1 changed files with 1 additions and 1 deletions

View File

@ -173,4 +173,4 @@ while (!feof($handle)) {
fclose($handle); fclose($handle);
$searcher->close(); $searcher->close();
printf("Bench finished, {cachePolicy: %s, total: %d, took: %ds, cost: %.3f ms/op}\n", printf("Bench finished, {cachePolicy: %s, total: %d, took: %ds, cost: %.3f ms/op}\n",
$cachePolicy, $count, (XdbSearcher::now() - $sTime)/1000, $costs/$count); $cachePolicy, $count, (XdbSearcher::now() - $sTime)/1000, $count == 0 ? 0 : $costs/$count);