save timefiles in directory
git-svn-id: svn://10.0.0.236/trunk@141274 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
fcdffa3016
commit
9510bf82ed
@ -71,9 +71,14 @@ sub is_http_alive() {
|
||||
{
|
||||
my $alive_time = 0; # Hours http has been up.
|
||||
my $alive = 0;
|
||||
my $timefile = "$script_dir/http_alive_timefile.$ARGV[0]";
|
||||
my $timefile = "$script_dir/http_alive_timefiles/$ARGV[0]";
|
||||
|
||||
|
||||
# make sure directory exists
|
||||
unless (-d $timefile) {
|
||||
mkdir "$script_dir/http_alive_timefiles";
|
||||
}
|
||||
|
||||
PrintUsage() if $#ARGV == -1;
|
||||
|
||||
$alive = is_http_alive();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user