From 9459a7d25f83863f45f0cbdc57e36c72ac535067 Mon Sep 17 00:00:00 2001 From: wiire Date: Fri, 11 Dec 2015 11:40:15 +0100 Subject: [PATCH] Fixed displayed time issue on Windows --- src/pixiewps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pixiewps.c b/src/pixiewps.c index 0a2b705..b501cf1 100644 --- a/src/pixiewps.c +++ b/src/pixiewps.c @@ -773,7 +773,7 @@ usage_err: } c_end = clock(); - long long ms_elapsed = (c_end - c_start) / 1000; + unsigned long long ms_elapsed = (c_end - c_start) / (CLOCKS_PER_SEC / 1000); k--; @@ -825,7 +825,7 @@ usage_err: } else { printf("\n [-] WPS pin not found!"); } - printf("\n\n [*] Time taken: %lld s %lld ms\n\n", ms_elapsed / 1000, ms_elapsed % 1000); + printf("\n\n [*] Time taken: %llu s %llu ms\n\n", ms_elapsed / 1000, ms_elapsed % 1000); if (wps->warning) { printf("%s", wps->warning);