mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
use better accuracy for average time - #.# often produces just 0
This commit is contained in:
parent
45b6dd3cdf
commit
cb73c55b19
@ -77,7 +77,7 @@ public class StatisticsDialog extends InfoDialog {
|
||||
double totalSeconds = scanTime/1000;
|
||||
double totalMinutes = totalSeconds/60;
|
||||
double totalHours = totalMinutes/60;
|
||||
NumberFormat format = new DecimalFormat("#.#");
|
||||
NumberFormat format = new DecimalFormat("#.##");
|
||||
if (totalHours >= 1)
|
||||
return format.format(totalHours) + Labels.getLabel("unit.hour");
|
||||
if (totalMinutes >= 1)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user