Added OpenCL device utilization to status information in machine readable output

pull/1619/head
jsteube 6 years ago
parent ed0ac581cd
commit 8903adb164

@ -14,6 +14,7 @@
- OpenCL kernels: Abort session if kernel self-test failed
- OpenCL kernels: Add '-pure' prefix to kernel filenames to avoid problems caused by reusing existing hashcat installation folder
- Added JtR-compatible support for hex notation in rules engine
- Added OpenCL device utilization to status information in machine readable output
##
## Bugs

@ -848,6 +848,21 @@ void status_display_machine_readable (hashcat_ctx_t *hashcat_ctx)
printf ("REJECTED\t%" PRIu64 "\t", hashcat_status->progress_rejected);
printf ("UTIL\t");
for (int device_id = 0; device_id < hashcat_status->device_info_cnt; device_id++)
{
const device_info_t *device_info = hashcat_status->device_info_buf + device_id;
if (device_info->skipped_dev == true) continue;
// ok, little cheat here again...
const int util = hm_get_utilization_with_device_id (hashcat_ctx, device_id);
printf ("%d\t", util);
}
hc_fwrite (EOL, strlen (EOL), 1, stdout);
fflush (stdout);

Loading…
Cancel
Save