From cef00a141fcccd95c3eaaac5e05d1b2aead6b49f Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Wed, 20 Sep 2006 19:16:30 +0000 Subject: fixed FTPtransfer probe to use srcfile as default for destfile. --- lib/Smokeping/probes/FTPtransfer.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Smokeping/probes/FTPtransfer.pm') diff --git a/lib/Smokeping/probes/FTPtransfer.pm b/lib/Smokeping/probes/FTPtransfer.pm index d3dd41d..6be72fc 100644 --- a/lib/Smokeping/probes/FTPtransfer.pm +++ b/lib/Smokeping/probes/FTPtransfer.pm @@ -75,7 +75,7 @@ DOC sub ProbeDesc ($) { my $self = shift; my $srcfile = $self->{properties}{srcfile}; - my $destfile = $self->{properties}{destfile}; + my $destfile = $self->{properties}{destfile} || $self->{properties}{srcfile}; my $mode = $self->{properties}{mode}; my $size = $mode eq 'get' ? -s $destfile : -s $srcfile; return sprintf("FTP File transfers (%.0f KB)",$size/1024); @@ -95,7 +95,7 @@ sub pingone { my $vars = $target->{vars}; my $mininterval = $self->{properties}{min_interval}; my $srcfile = $self->{properties}{srcfile}; - my $destfile = $self->{properties}{destfile}; + my $destfile = $self->{properties}{destfile} || $self->{properties}{srcfile}; my $mode = $self->{properties}{mode}; my $username = $vars->{username}; @@ -174,7 +174,7 @@ DOC destfile => { _doc => < 'destinationfile', }, -- cgit v1.2.3-24-g4f1b