diff --git a/xCAT-probe/lib/perl/probe_utils.pm b/xCAT-probe/lib/perl/probe_utils.pm index 2400212c2..e309def96 100644 --- a/xCAT-probe/lib/perl/probe_utils.pm +++ b/xCAT-probe/lib/perl/probe_utils.pm @@ -580,10 +580,9 @@ sub convert_second_to_time { } else { $tmp_second = $second_in % 60; } - if ($tmp_second == 0) { - push @time, "00"; - } elsif ($tmp_second < 10) { - push @time, "0" . "$tmp_second"; + + if ($tmp_second < 10) { + push @time, "0$tmp_second"; } else { push @time, "$tmp_second"; } diff --git a/xCAT-probe/subcmds/osdeploy b/xCAT-probe/subcmds/osdeploy index c04c3af27..6a92ecc1a 100755 --- a/xCAT-probe/subcmds/osdeploy +++ b/xCAT-probe/subcmds/osdeploy @@ -65,9 +65,10 @@ Options: -r : Trigger 'Replay history' mode. Follow the duration of rolling back. Units are 'h' (hour) or 'm' (minute) Supported format examples: 3h30m (3 hours and 30 minutes ago), 2h (2 hours ago), 40m (40 minutes ago) and 3 (3 hours ago). If unit is not specified, hour will be used by default. - -p : Performance of provision for each node and all. - Supported level: 1 (show how much time spent for provision), - 2 (show how much time spent for DHCP, Download RPM packages, Run Postscripts, Run Postbootscripts). + -p Show elapsed time of each stage during provision for each node + Support 2 output format: + 1 Elapsed time of each stage during provision + 2 Elapsed time from power on node to each stage starting ";