mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Print a partial taskprogress when perc_done is less than 1%. Fixes #1351
This commit is contained in:
parent
53f5f5652e
commit
dc238cf08b
1 changed files with 7 additions and 1 deletions
|
|
@ -703,7 +703,13 @@ bool ScanProgressMeter::printStats(double perc_done,
|
|||
if (perc_done < 0.01) {
|
||||
log_write(LOG_STDOUT, "%s Timing: About %.2f%% done\n",
|
||||
scantypestr, perc_done * 100);
|
||||
log_flush(LOG_STDOUT);
|
||||
xml_open_start_tag("taskprogress");
|
||||
xml_attribute("task", "%s", scantypestr);
|
||||
xml_attribute("time", "%lu", (unsigned long) now->tv_sec);
|
||||
xml_attribute("percent", "%.2f", perc_done * 100);
|
||||
xml_close_empty_tag();
|
||||
xml_newline();
|
||||
log_flush(LOG_STDOUT|LOG_XML);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue