From e696e0a87daee28231ee8aa99ea69d886a14ac99 Mon Sep 17 00:00:00 2001 From: Chick3nman Date: Tue, 2 Apr 2019 14:59:10 -0500 Subject: [PATCH] Fix time formatting --- src/terminal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/terminal.c b/src/terminal.c index b8eb38d53..5108c89a1 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -913,7 +913,7 @@ void status_display_status_json (hashcat_ctx_t *hashcat_ctx) if (overflow_check_u64_add (time_now, sec_etc) == false) { - end = -1; + time_t end = 1; } else { @@ -955,8 +955,8 @@ void status_display_status_json (hashcat_ctx_t *hashcat_ctx) printf (" \"util\": %d \}", util); } printf (" \]"); - printf (" \"time_start\": %d,", status_ctx->runtime_start); - printf (" \"estimated_stop\": %d \}", end); + printf (" \"time_start\": %" PRIu64 ",", status_ctx->runtime_start); + printf (" \"estimated_stop\": %" PRIu64 "\}", end); hc_fwrite (EOL, strlen (EOL), 1, stdout);