Francois Gouget : testbot: Show the generation time of the job index page.
Alexandre Julliard
julliard at winehq.org
Wed Jan 3 12:15:01 CST 2018
Module: tools
Branch: master
Commit: 964e97a77b786802856a043959ee5f431c990d9c
URL: https://source.winehq.org/git/tools.git/?a=commit;h=964e97a77b786802856a043959ee5f431c990d9c
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Wed Jan 3 12:48:06 2018 +0100
testbot: Show the generation time of the job index page.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
testbot/web/index.pl | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/testbot/web/index.pl b/testbot/web/index.pl
index deacf90..427d7f6 100644
--- a/testbot/web/index.pl
+++ b/testbot/web/index.pl
@@ -189,6 +189,7 @@ use ObjectModel::CGI::Page;
use WineTestBot::Config;
use WineTestBot::Engine::Notify;
use WineTestBot::Jobs;
+use WineTestBot::Log;
use WineTestBot::VMs;
@StatusPage::ISA = qw(ObjectModel::CGI::Page);
@@ -197,6 +198,7 @@ sub _initialize($$$)
{
my ($self, $Request, $RequiredRole) = @_;
+ $self->{start} = Time();
$self->SUPER::_initialize($Request, $RequiredRole);
}
@@ -297,6 +299,8 @@ EOF
my $VMsCollectionBlock = new VMStatusBlock(CreateVMs(), $self);
$VMsCollectionBlock->GenerateList();
print "</div>\n";
+
+ print "<p class='GeneralFooterText'>Generated in ", Elapsed($self->{start}), " s</p>\n";
}
package main;
More information about the wine-cvs
mailing list