Francois Gouget : testbot/web: Only refresh the main page for small valid Days values.
Alexandre Julliard
julliard at winehq.org
Tue Mar 22 16:37:57 CDT 2022
Module: tools
Branch: master
Commit: 9992a28e49aeb1c137d16561c2508ba0a9757e02
URL: https://source.winehq.org/git/tools.git/?a=commit;h=9992a28e49aeb1c137d16561c2508ba0a9757e02
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Tue Mar 22 13:21:30 2022 +0100
testbot/web: Only refresh the main page for small valid Days values.
If Days is invalid every refresh would pop up the error dialog.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
testbot/web/index.pl | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/testbot/web/index.pl b/testbot/web/index.pl
index 605e23b..451258e 100644
--- a/testbot/web/index.pl
+++ b/testbot/web/index.pl
@@ -284,8 +284,10 @@ sub GeneratePage($)
{
my ($self) = @_;
- $self->{Request}->headers_out->add("Refresh", "60");
-
+ if (!$self->GetErrMessage() and $self->GetParam("Days") <= $DAYS_DEFAULT)
+ {
+ $self->{Request}->headers_out->add("Refresh", "60");
+ }
$self->SUPER::GeneratePage();
}
More information about the wine-cvs
mailing list