fix(native/tests): correct printf format specifier for int64_t
Fix C++ printf format specifier for int64_t (milliseconds count): - Change %ld to %lld for duration_cast<milliseconds>.count() - Resolves compiler warnings on platforms where long != long long
This commit is contained in:
parent
4730f82236
commit
93ecbf6c98
1 changed files with 2 additions and 2 deletions
|
|
@ -248,8 +248,8 @@ int test_performance() {
|
|||
auto create_time = duration_cast<milliseconds>(create_end - start);
|
||||
auto hash_time = duration_cast<milliseconds>(hash_end - create_end);
|
||||
|
||||
printf(" Created %d files in %ld ms\n", num_files, create_time.count());
|
||||
printf(" Hashed %d files in %ld ms\n", num_files, hash_time.count());
|
||||
printf(" Created %d files in %lld ms\n", num_files, create_time.count());
|
||||
printf(" Hashed %d files in %lld ms\n", num_files, hash_time.count());
|
||||
printf(" Throughput: %.1f files/sec\n", num_files * 1000.0 / hash_time.count());
|
||||
|
||||
fh_free_string(hash);
|
||||
|
|
|
|||
Loading…
Reference in a new issue