summaryrefslogtreecommitdiffstats
path: root/perl-install/install/install2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-12-14 14:05:08 +0000
committerThierry Vignaud <tv@mageia.org>2012-12-14 14:05:08 +0000
commit49db481ef03e15e7f8f825390cd5b9d48e1a147f (patch)
tree21cffb4f21c3c6fc4ea8d6a5e9953efc02b9b4b9 /perl-install/install/install2.pm
parent3f985184d4bb4cbbde1c82eecf88a31a67ebf2bd (diff)
downloaddrakx-backup-do-not-use-49db481ef03e15e7f8f825390cd5b9d48e1a147f.tar
drakx-backup-do-not-use-49db481ef03e15e7f8f825390cd5b9d48e1a147f.tar.gz
drakx-backup-do-not-use-49db481ef03e15e7f8f825390cd5b9d48e1a147f.tar.bz2
drakx-backup-do-not-use-49db481ef03e15e7f8f825390cd5b9d48e1a147f.tar.xz
drakx-backup-do-not-use-49db481ef03e15e7f8f825390cd5b9d48e1a147f.zip
(real_main) time steps in logs
Diffstat (limited to 'perl-install/install/install2.pm')
-rw-r--r--perl-install/install/install2.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/install/install2.pm b/perl-install/install/install2.pm
index 0a763358b..c5cef30e2 100644
--- a/perl-install/install/install2.pm
+++ b/perl-install/install/install2.pm
@@ -698,10 +698,12 @@ sub real_main() {
MAIN: for ($o->{step} = $o->{steps}{first};; $o->{step} = getNextStep($o)) {
$o->{steps}{$o->{step}}{entered}++;
$o->enteringStep($o->{step});
+ my $time = time();
eval {
&{$install::install2::{$o->{step}}}($o->{steps}{$o->{step}}{auto});
};
my $err = $@;
+ log::l("step \"$o->{step}\" took: ", formatTimeRaw(time() - $time));
$o->kill_action;
if ($err) {
local $_ = $err;