Kaydet (Commit) c2ece9e2 authored tarafından Tim Retout's avatar Tim Retout Kaydeden (comit) Michael Meeks

Move global starttime into installer::logger

üst f2808e15
......@@ -431,8 +431,6 @@ BEGIN
$postprocess_standardepm = 0;
$mergemodules_analyzed = 0;
$starttime = "";
@solarispatchscripts = ("checkinstall", "copyright", "patch_checkinstall", "patch_postinstall", "postinstall", "preinstall", "i.none");
@solarispatchscriptsforextensions = ("checkinstall", "copyright", "patch_checkinstall", "patch_postinstall_extensions", "postinstall_extensions", "preinstall", "i.none");
@solarispatchfiles = (".diPatch", "patchinfo");
......
......@@ -51,6 +51,8 @@ our @EXPORT_OK = qw(
print_error
);
my $starttime;
####################################################
# Including header files into the logfile
####################################################
......@@ -207,7 +209,7 @@ sub savedebug
sub starttime
{
$installer::globals::starttime = time();
$starttime = time();
}
###############################################################
......@@ -258,7 +260,7 @@ sub _convert_timestring
sub _get_time_string
{
my $currenttime = time();
$currenttime = $currenttime - $installer::globals::starttime;
$currenttime = $currenttime - $starttime;
$currenttime = _convert_timestring($currenttime);
$currenttime = localtime() . " \(" . $currenttime . "\)\n";
return $currenttime;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment