[tools] testbot/web: Better document the default Hours log page value.
Store it in a variable at the start of the file so it's easy to spot. Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com> --- testbot/web/admin/Log.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testbot/web/admin/Log.pl b/testbot/web/admin/Log.pl index ddc655f6d6..8d3a8ce8b7 100644 --- a/testbot/web/admin/Log.pl +++ b/testbot/web/admin/Log.pl @@ -28,6 +28,8 @@ use ObjectModel::BasicPropertyDescriptor; use WineTestBot::Config; use WineTestBot::Log; +my $HOURS_DEFAULT = 1; + sub _initialize($$$) { @@ -41,7 +43,7 @@ sub _initialize($$$) if (!$self->GetParam("Hours") or !$self->Validate() or !int($self->GetParam("Hours"))) # 00 case! { - $self->SetParam("Hours", 1) if (!defined $self->{ErrMessage}); + $self->SetParam("Hours", $HOURS_DEFAULT) if (!defined $self->{ErrMessage}); $self->SetParam("Action", undef); } } -- 2.30.2
participants (1)
-
Francois Gouget