mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-24 23:48:39 +00:00
Fix time formatting
This commit is contained in:
parent
b551592082
commit
e696e0a87d
@ -913,7 +913,7 @@ void status_display_status_json (hashcat_ctx_t *hashcat_ctx)
|
|||||||
|
|
||||||
if (overflow_check_u64_add (time_now, sec_etc) == false)
|
if (overflow_check_u64_add (time_now, sec_etc) == false)
|
||||||
{
|
{
|
||||||
end = -1;
|
time_t end = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -955,8 +955,8 @@ void status_display_status_json (hashcat_ctx_t *hashcat_ctx)
|
|||||||
printf (" \"util\": %d \}", util);
|
printf (" \"util\": %d \}", util);
|
||||||
}
|
}
|
||||||
printf (" \]");
|
printf (" \]");
|
||||||
printf (" \"time_start\": %d,", status_ctx->runtime_start);
|
printf (" \"time_start\": %" PRIu64 ",", status_ctx->runtime_start);
|
||||||
printf (" \"estimated_stop\": %d \}", end);
|
printf (" \"estimated_stop\": %" PRIu64 "\}", end);
|
||||||
|
|
||||||
hc_fwrite (EOL, strlen (EOL), 1, stdout);
|
hc_fwrite (EOL, strlen (EOL), 1, stdout);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user