increased the timeout from 30 to 120 seconds

This commit is contained in:
Jordi Sanfeliu 2015-03-12 08:55:40 +01:00
parent 6a5a54ac0b
commit 543df9c141
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# #
# Monitorix - A lightweight system monitoring tool. # Monitorix - A lightweight system monitoring tool.
# #
# Copyright (C) 2005-2014 by Jordi Sanfeliu <jordi@fibranet.cat> # Copyright (C) 2005-2015 by Jordi Sanfeliu <jordi@fibranet.cat>
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@ -77,7 +77,7 @@ EOF
<a href='http://www.monitorix.org'><img src='cid:image_logo' border='0'></a> <a href='http://www.monitorix.org'><img src='cid:image_logo' border='0'></a>
<br> <br>
<font face='Verdana, sans-serif' color='000000' size='-2'> <font face='Verdana, sans-serif' color='000000' size='-2'>
Copyright &copy; 2005-2014 Jordi Sanfeliu Copyright &copy; 2005-2015 Jordi Sanfeliu
</font> </font>
</body> </body>
</html> </html>
@ -94,7 +94,7 @@ EOF
# generate the graphs and get the html source # generate the graphs and get the html source
my $url = $prefix . $base_cgi . "/monitorix.cgi?mode=localhost&graph=_$g&when=$when&color=white"; my $url = $prefix . $base_cgi . "/monitorix.cgi?mode=localhost&graph=_$g&when=$when&color=white";
my $ua = LWP::UserAgent->new(timeout => 30, $ssl); my $ua = LWP::UserAgent->new(timeout => 120, $ssl);
my $response = $ua->request(HTTP::Request->new('GET', $url)); my $response = $ua->request(HTTP::Request->new('GET', $url));