2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-14 02:10:23 +00:00

modified depending on comments

This commit is contained in:
XuWei
2017-01-24 20:36:19 -05:00
parent 97ca01394d
commit 6fdf3bef66
2 changed files with 7 additions and 7 deletions

View File

@ -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";
}

View File

@ -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
";