.3f format the took

This commit is contained in:
lionsoul2014 2025-10-30 23:19:38 +08:00
parent 9797b595ea
commit 731269ebad
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ type 'quit' to exit'''.format(db_path, searcher.get_ip_version().name, cache_pol
continue continue
took = (time.time() - s_time) * 1000 took = (time.time() - s_time) * 1000
print(f"{{region: {region}, ioCount: {searcher.get_io_count()}, took: {took:.2f} ms}}"); print(f"{{region: {region}, ioCount: {searcher.get_io_count()}, took: {took:.3f} ms}}");
# close the searcher # close the searcher
searcher.close() searcher.close()