diff --git a/cloud/filestore/tools/testing/open_close_bench/main.c b/cloud/filestore/tools/testing/open_close_bench/main.c index c9359c16af4..272c3b57b24 100644 --- a/cloud/filestore/tools/testing/open_close_bench/main.c +++ b/cloud/filestore/tools/testing/open_close_bench/main.c @@ -59,7 +59,8 @@ int main(int argc, char *argv[]) { } clock_gettime(CLOCK_MONOTONIC, &endTime); - openTime = (endTime.tv_sec - startTime.tv_sec) + (endTime.tv_nsec - startTime.tv_nsec) / 1e9; + openTime = (endTime.tv_sec - startTime.tv_sec) + + (endTime.tv_nsec - startTime.tv_nsec) / 1e9; printf("Open %.6f ms\n", openTime * 1000); printf("Open avg %.6f ms\n", openTime * 1000 / n); @@ -70,7 +71,8 @@ int main(int argc, char *argv[]) { } clock_gettime(CLOCK_MONOTONIC, &endTime); - closeTime = (endTime.tv_sec - startTime.tv_sec) + (endTime.tv_nsec - startTime.tv_nsec) / 1e9; + closeTime = (endTime.tv_sec - startTime.tv_sec) + + (endTime.tv_nsec - startTime.tv_nsec) / 1e9; printf("Close %.6f ms\n", closeTime * 1000); printf("Close avg %.6f ms\n", closeTime * 1000 / n);