Fix delay handling

This commit is contained in:
Luc Didry 2016-12-31 14:09:00 +01:00
parent bd0c26dd2d
commit b219064794
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ sub upload {
}
# If the file size is lower than the lowest configured size or if there is no delay_for_size setting, we choose the configured max delay
unless (defined $delay) {
$delay = ($json->{delay} <= $c->max_delay || $c->max_delay == 0) ? $json->{delay} : $c->max_delay;
$delay = (($json->{delay} > 0 && $json->{delay} <= $c->max_delay) || $c->max_delay == 0) ? $json->{delay} : $c->max_delay;
}
my $creator = $c->ip;