mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
Fix warning in bench
This commit is contained in:
@@ -35,7 +35,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
spdlog::default_logger()->set_pattern("[%^%l%$] %v");
|
spdlog::default_logger()->set_pattern("[%^%l%$] %v");
|
||||||
int howmany = 1000000;
|
int howmany = 1000000;
|
||||||
int queue_size = 8192;
|
|
||||||
int threads = 10;
|
int threads = 10;
|
||||||
size_t file_size = 30 * 1024 * 1024;
|
size_t file_size = 30 * 1024 * 1024;
|
||||||
size_t rotating_files = 5;
|
size_t rotating_files = 5;
|
||||||
@@ -47,8 +46,6 @@ int main(int argc, char *argv[])
|
|||||||
howmany = atoi(argv[1]);
|
howmany = atoi(argv[1]);
|
||||||
if (argc > 2)
|
if (argc > 2)
|
||||||
threads = atoi(argv[2]);
|
threads = atoi(argv[2]);
|
||||||
if (argc > 3)
|
|
||||||
queue_size = atoi(argv[3]);
|
|
||||||
|
|
||||||
spdlog::info("**************************************************************");
|
spdlog::info("**************************************************************");
|
||||||
spdlog::info("Single thread, {:n} iterations", howmany);
|
spdlog::info("Single thread, {:n} iterations", howmany);
|
||||||
|
Reference in New Issue
Block a user