Module: tools Branch: master Commit: 964e97a77b786802856a043959ee5f431c990d9c URL: https://source.winehq.org/git/tools.git/?a=commit;h=964e97a77b786802856a0439...
Author: Francois Gouget fgouget@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@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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;